Is it possible to generate select or insert script of one table using SSDT in Visual Studio 2013?
I came across this entry hoping it would answer this question: how do I script out the data in a table? I've used SSMS in the past to generate the INSERT statements that would load the data back into a table.
These are the steps in VS 2013/SSDT 2014:
Using the SQL Server Object Explorer pane, right click on the table name, choose View Data
.
At the top of the data pane is label Max Rows
with combo box, choose All
.
Click on scroll/script icon to right of box and it will produce script of insert statements.
The next icon to the right will send the statements straight to file.