Say I already created my database but forgot to save the sql commands do create it.
How could I reverse engineer the code from an already existing database?
I’m using Microsoft SQL Server Express 2008.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this pretty easily by using SQL Server Management Studio (SSMS) – it’s available for free if you don’t already have it installed.
That will create the necessary scripts to recreate your database.
To script out all the tables in your database:
Here’s a link for the 2008 version SSMS Express 2008