I have SQL Server 2008
, SQL Server Management Studio.
I need to select data from Table1
in database1. Then I have to edit some values in the results and insert values into Table1
in database2.
Or let me put it other way.
How can I convert the data in one table into insert script
.
Here is another method, which may be easier than installing plugins or external tools in some situations:
select [whatever you need]
INTO temp.table_name
from [... etc ...]
.temp.table_name
in the "Choose Objects" screen, click Next.INSERT
statements appear in a new query window.[temp.table_name]
to [your_table_name]
.drop table [temp.table_name]
.