Click here to Skip to main content
15,860,943 members
Articles / Database Development / SQL Server
Alternative
Tip/Trick

Generate Script with Data from Database

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
13 Nov 2010CPOL 11.4K   4   4
SSMS also provides the option to generate SQL script file which contains both schema and data.Right click the database and select Generate Scripts under Tasks Menu.Click Set Scripting Options on the left hand menu (in SQL Server 2008 R2) then click Advanced button, there is an option under...
SSMS also provides the option to generate SQL script file which contains both schema and data.
Right click the database and select Generate Scripts under Tasks Menu.
Click Set Scripting Options on the left hand menu (in SQL Server 2008 R2) then click Advanced button, there is an option under General category named Type of data to Script which has 3 options - Schema only, Data only and Schema and Data.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionVery useful Pin
Member 310415925-Mar-12 13:07
Member 310415925-Mar-12 13:07 
GeneralGood one!! Pin
Sunasara Imdadhusen29-Dec-10 23:25
professionalSunasara Imdadhusen29-Dec-10 23:25 
Generalgood answer tarun...... Pin
Vivek Johari26-Nov-10 6:04
Vivek Johari26-Nov-10 6:04 
GeneralReason for my vote of 5 Nice Explaination Pin
niteshkatare00715-Nov-10 18:00
niteshkatare00715-Nov-10 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.