batching up inserts but rolling them ALL back if required

  • We want to be able to break down some really big inserts because they keep filling our log file, exapnding it, and consuming all of the disk.

    The database is in simple mode.

    The multiple inserts are held within a begin/commit transaction.

    How can we batch up each of those individual inserts but still retain the ability to roll ALL of them back if required?

    thanks

  • The usual solution is to use one of the bulk import methods, in minimally-logged mode.

    The section of Books Online that deals with this is Importing and Exporting Bulk Data.

  • Many thanks for the reply. Am currently digesting the article!

  • Steven Jones-245254 (3/18/2010)


    Many thanks for the reply. Am currently digesting the article!

    It is a lot simpler in practice than it may first appear. The important thing is to make sure you meet the conditions for minimal logging. Post back if you get stuck on anything.

Viewing 4 posts - 1 through 3 (of 3 total)

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