I’m making Visual Studio setup for my project.
I want it automatically create empty database inside some SQL Server 2008 (Express)
- Is there some tool / way to automatic generate such script of my database (sadly my database structure isn’t stable yet)
- How can I add it to installation process ? I know that I can run programs and scripts during installation but how can I specify SQL Server for my script ?
thank you.
In SSMS, Right-Click on database -> Tasks… -> Generate Scripts….
Suggest you also look at using the Database GDR R2 projects (if using VS 2008) or the built-in database project if using VS 2010.