sprocs executed but rolled back? is there any log?

  • if a sproc started executing and then the transaction was killed, is there a way to check which sproc it was? I know if a sproc started and completed, i can try looking at sys.dm_exec_query_stats to see when was the last time it executed. Any thoughts?

  • For future, you can set trace and capture that SP.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • I assume you'd be able to read the log and see the start and rollback, if there were changes, but this wouldn't be simple or easy.

    SQL Server doesn't log every activity that occurs.

  • Bhuvnesh (12/28/2012)


    For future, you can set trace and capture that SP.

    I don't want to trace to run 24 X7 as i don't know when the issue would occur. I wanted to know if someone killed a sproc, if i come in later is there a way to find which sproc was killed?

  • sqldba_newbie (12/28/2012)


    I don't want to trace to run 24 X7 as i don't know when the issue would occur.

    thats why i asked you to use trace when you are blank in any particular case use it but with PROPER AND REQUIRED filter. as we know that it s a resource intensive operation(that is what you would be thinking here and reluctant to use it ) , but when we have proper filer plus only fetching event which are relevant and required then you can minimize the resoure usage.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

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

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