Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

sprocs executed but rolled back? is there any log? Expand / Collapse
Author
Message
Posted Wednesday, December 26, 2012 4:14 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 9:01 AM
Points: 1,299, Visits: 3,003

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?
Post #1400410
Posted Friday, December 28, 2012 1:09 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, December 17, 2014 2:16 AM
Points: 2,840, Visits: 3,983
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
Post #1400819
Posted Friday, December 28, 2012 10:24 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Yesterday @ 3:11 PM
Points: 31,368, Visits: 15,837
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.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1400970
Posted Friday, December 28, 2012 10:55 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 9:01 AM
Points: 1,299, Visits: 3,003
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?
Post #1400981
Posted Sunday, December 30, 2012 11:58 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, December 17, 2014 2:16 AM
Points: 2,840, Visits: 3,983
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
Post #1401296
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse