• bhutchin (11/10/2013)


    Ron - thank you for replying so soon. However, because I do not have access to the system tables the query does not work for me. Here is the error message I receive when I try to run it.

    Msg 297, Level 16, State 1, Line 1

    The user does not have permission to perform this action.

    Is there a way around not using system tables? Thank you

    Yes there is. If you've been tasked with doing such a thing, you well know that it's near impossible to do without the correct privs. You need to petition for and get the right privs to do this or have the DBAs do this for you.

    The alternative is to get each stored proc to do it's own logging. With a little imagination and forethough, that's not as difficult to do as you might think.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)