Export Data to INSERT Statements

  • Other than looping through a record set and printing out INSERT statements. Is there a simple tool to export all table data as INSERTs?

    My end goal is to export SQL 2005 data into a SQL 7.0 database. All suggestions are appreciated.

    Thanks

    Dave

  • Narayana Vyas Kondreddi wrote a really good proc over at http://vyaskn.tripod.com called sp_generate_inserts, which dumps the table's contents out to INSERT statements.

    i use it all the time and have used a modified version to include the IDENTITY_INSERT ON/OFf as a select instead of print.

    that will do everything you need.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply