1

I'm making Visual Studio setup for my project.

I want it automatically create empty database inside some SQL Server 2008 (Express)

  1. Is there some tool / way to automatic generate such script of my database (sadly my database structure isn't stable yet)
  2. 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.

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.