Hi there!
First off I´m new here, so, I'd say HELLO EVERYONE and thanks for years of helping.
I have the following problem:
I need create a installation of a C# app that uses SQL Server 2008. I am using InnoSetup Installer because I thought it could be the best choice, but I have no clue how to install SQL Server 2008, and several databases (.mdf, .ldf or .bak) which should be installed on the local machine.
So my task is, having the C# app and the SQL Server 2008 engine + tools in my computer, to distribute it to my clients in a unattended manner (because the fact that they're using a database should be transparent to the end user).
I´m sure it is possible, actually I install the C# app, and the SQL Server engine (downloaded SQLEXP32_x86_ENY.exe
), but what about the databases? That is my problem, as well as a correct configuration of SQL SERVER: because as you probably know, it is not so trivial make it work properly (Access control problems, Administrator Rights, and so on).
For example in order to install SQL Server I do it in console mode, as Microsoft blesses, doing:
SQLEXP32_x86_ENY.exe /ACTION=install /FEATURES=SQL,Tools
/INSTANCENAME=SQLExpress
/SECURITYMODE=SQL /SAPWD=****
/SQLSYSADMINACCOUNTS="Builtin\Administrators"
\ENABLERANU /SQLSVCACCOUNT=""
/SQLSVCPASSWORD=""
What should I write in /SQLSVCACCOUNT /SQLSVCPASSWORD, for example?
What should I do to import my existing databases I provide? Until lately people used to use SQLDMO CMO object, but I read that that is not longer supported.
How do you do that? That's the question, at least dome tips could be useful.
My client needs a database locally, but at the beginning they need to have created some databases as well as some initial data in.
Thanks in advance!!!