sp_generate_insert_script.sql

Like the sp_xfrdata_v2.0.sql script below, this SQL 7.0 script will generate insert-statements for rows in a table and is useful for quick transfers between databases or for filling tables with test or standard info.

Features:

  • handles identity columns (using identity_insert)
  • skips timestamp columns
  • handles quotes in strings
  • handles text fields to a maximum of 1000
  • sorts output to make comparing output from different moments / databases simpler

Author: Inez Boone

Download Script:
sp_generate_insert_script.sql



Disclaimer:
We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Get the Free Newsletter!

Subscribe to Cloud Insider for top news, trends & analysis

Latest Articles