• matt6749 (7/28/2014)


    One followup. (Hope I'm not annoying everybody):

    With the Simple recovery model I'm using, would BEGIN TRANS and COMMIT statements help free up space in the log when used as follows:

    instead of using this:

    delete from x ...

    update x ...

    insert into x ...

    use something like this below (that way the log space might be reused) ?

    BEGIN TRAN

    delete from x ...

    COMMIT

    BEGIN TRAN

    update x ...

    COMMIT

    BEGIN TRAN

    insert into x ...

    COMMIT

    That might (should?) allow the log file to be truncated (freed up for reuse) earlier, particularly if the delete, update and inserts are large-volume transactions.

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.