In SQL Server 2008 R2 script data missing on Script Wizard

shamim picture shamim · Dec 6, 2010 · Viewed 25.8k times · Source

In my SQL Server 2008 R2

Script Option Screen of Script Wizard under section Table/View Options Look I find Script Data row and want to turn the option to True but I fail.

I don't find any script data option. Why script data option missing on my SQL Server 2008 R2? Is there any command to generate the insert data option.

Why this problem arise? how to solve it? Thanks in advance

Answer

shamim picture shamim · Dec 6, 2010

It looks like they removed it from that location. You can still do it by:

  • Right clicking on the DB
  • Click on tasks
  • Click on generate scripts
  • Go through the wizard and select your tables
  • On the options page click the Advanced button
  • Change the "Types of data to script" option, from the default "Schema only" to "Schema and data".