The file below contains an adjusted script for generating insert statements for sql server table data. It was originally written by Narayana Vyas Kondreddi. You can find example usage inside the script.
sp_generate_inserts
Note that this procedure's name has the devilish sp_ prefix, which means that it better be created in the master database. This way, it will be available to all databases in an sql server instance. Otherwise you'd have to create it on each database on your server.
No comments:
Post a Comment