Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Related Posts

Generating INSERT statements

Posted on October 3rd
When you are creating a SQL script to deploy your system, Enterprise Manager does a good job with all of the schema (creating the tables, views, etc...) but doesn't handle creating INSERTS for any of your lookup tables. I used to generate SQL INSERT statements for my data using a SELECT (SELECT 'INSERT ..."' + [Col1] +'"...), but looking around on the web tonight, I found a cool stored proc that does all the work for you.

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

I actually found quite a few utilities to accomplish this same result, but this was the first one I tried and it worked great!


Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to comment!