hi,
there are a lot of ways to deploy db depending on the environment and needs.
- I would prefer you to create complete database script and include into setup as file.
- create a form in your application where use can set the SQL settings (ask user to provide sql server information), take them and save on file system .
- everytime application starts, load the sql info from the file.
- for security purpose, you can write the connetion string in encrypted form & decrypt when reading it.
Script to create db can be run on first launch of applicaiton or onComplete(something same ) event of installer project.
I tried to write the steps and concept how to do... hope this would help
-Thanks
Main Topics
Browse All Topics





by: strickddPosted on 2009-06-10 at 11:56:57ID: 24594851
What you need to do is install SQL Server 2008 on a computer (server) that is accessible by all client pcs that need to connect to it. If it is internal you can use a connection string to the computer name/IP Address, if it is external you will need to create a connection through HTTP to the SQL server. To deploy, you just need to set your connection string to point to the server and run the application with that as its connection string.