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
Select the View in the Object Explorer, right click, and select Script View as -> Create to -> New Query Editor Window. That will create a script to create the view in a new window.
It looks like they removed it from that location. You can still do it by:
In SQL Server 2008 R2 you can go on the DB, right click on DB -> Tasks -> Generate scripts. This is the wizard for scripting the objects (with or without data). Follow the stepts described on the first page. At the third stept, "Set Scripting Options", after you choose your way to save /publish your data, you go on "Advanced" and there, for General Options, at line "Types of data to script" you can choose to script also your data ("Schema and data").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With