Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:18:09+00:00 2026-05-16T00:18:09+00:00

Say I already created my database but forgot to save the sql commands do

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:18:11+00:00Added an answer on May 16, 2026 at 12:18 am

    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.

    • Connect to the database
    • Expand out Databases > YourDataBaseName.
    • Right-click on the database and select the option “Script database as” then “Create To” then finally “File”.

    That will create the necessary scripts to recreate your database.

    To script out all the tables in your database:

    • Right-click on the database node
    • Select “Tasks” then “Generate Scripts”.
    • When the wizard appears, click Next.
    • Select the database. At this point you can check the “Script all objects in the selected database” which does exactly what it says, or if you leave it unchecked you will get the option later in the process to pick which items are scripted.
    • Click next. Now you’re given some scripting options.
    • I’d suggest scrolling down the list and checking the option to Script Indexes/Script Triggers. You can also script the data if necessary (though I wouldn’t do this if you’ve got a lot of data in your database).
    • Modify any options you’d like and click Next.
    • Select the database types you’d like to script (Users/Tables/Views). Click Next.
    • Now you’ve got the opportunity to select more specific items. Hit Next and repeat the process of any of your other database types.
    • Hit next one more time, then select where you’d like the script written to. You get the chance to review your selections.
    • Click Finish.

    Here’s a link for the 2008 version SSMS Express 2008

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I like Linq but find that once the designer has created my classes I
I finally figured out what's wrong with my code, but I'm not sure how
I'm not well versed in domain driven design and I've recently started created a
I am woundering whether someone has time to normalize my database? I dont know
I have created a Data Access Layer using .NET. Everywhere that I update a
I posted this in the mailing list, but the reply I got wasn't too
I am using an array which contains the results of a database-query, which is
So I have a subscription form where a user is simultaneously creating a new
My website has a setup whereby when the application starts a module called SiteContent

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.