简体   繁体   中英

SQL DB Creation during deployment

I have designed my SQL Server tables through Microsoft SQL Management Studio and wrote ac# application based on the database created. While installing the application, I must create the database from a deployer. Can Someone say about the easy way to get that done.

I'm afraid there is no really easy way.

There is a tool called Roundhouse http://code.google.com/p/roundhouse/ which allows to deploy a database from script. You can integrate it in your setup but you'll have to care about server access rights yourself.

Or you can try some installer tools - wix, installshield etc, nearly all of them have tools to create a database.

I used SQL managment studio. There is an option to generate scripts from the databases and tables. I generated the script and executed it by the programming lanugages as how i execute queries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM