Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / database / SQL-Server

Generate Script with Data from Database

5.00/5 (2 votes)
13 Nov 2010CPOL 12.6K  
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)