Groups | Blog | Home
all groups > sql server dts > september 2005 >

sql server dts : dump data into SQL script as "insert ..."



frank
9/12/2005 3:39:02 PM
I am wondering if there is an easy way to script data into script.

i.e. I want to create a script file. For each record in each table, I'll
have a sql script like

INSERT INTO MyTable1 (Col1, Col2, Col3)VALUES(1, 'myVal11', 'myval12')
INSERT INTO MyTable1 (Col1, Col2, Col3)VALUES(2, 'myVal21', 'myval22')
....

I know I can do it in Oracle but I could get it in SQL Server by scripting
DB objects.

Frank
Allan Mitchell
9/12/2005 10:49:30 PM
This might be what you are looking for

http://vyaskn.tripod.com/code.htm#inserts

Allan

[quoted text, click to view]
AddThis Social Bookmark Button