Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends Need a help have devloped a project using vb.net & SQL server 2005, i have created a database in sql server 2005 but now i want to bind that database with my setup so that when i install that project on other system..... my database will automatacally created on other system's sql server.......



any help regarding this ??


:O
Posted

You could

0) script the creation of the database to a file

1) attach that file to your application as a resource

2) each time your program starts (after being installed), it can check to see if the database is installed

3) if not, extract the script from the resources and run it on the sql server. instance.

that way, the app can always create the database on its own.
 
Share this answer
 
hello buddy thanks for instructions
can you tell me how to create that script ? :O
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900