• mzz3lh (1/20/2010)


    However, when I ran this to try it out, I got an error:

    (1 row(s) affected)

    (1 row(s) affected)

    this is an exception

    Msg 208, Level 16, State 0, Line 10

    Invalid object name '#temp'.

    Probably the IMPLICIT_TRANSACTIONS option is turned on.

    Try this code:

    SET IMPLICIT_TRANSACTIONS OFF

    GO

    ... here comes the original script ...