Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can i create a SQL dump (structure and data) with the Management Studio 2005 or the MS SQL server?

share|improve this question
When you say 'dump' do you mean creating SQL statements that could be run to recreate the structure and data in a new db?> – Brad Patton Feb 28 '13 at 21:42
Yes, thats what i mean. – Johni Mar 1 '13 at 7:57
up vote 0 down vote accepted

In SQL Server Management Studio right-click your database and select Tasks / Generate Scripts. Follow the wizard and you'll get a script that recreates the data structure in the correct order according to foreign keys. On the wizard step titled "Set Scripting Options" choose "Advanced" and modify the "Types of data to script" option to "Schema and data"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.