Is there anyway to read a transaction log? At this time, if I want to see sql commands issued during a procedure, I use the SQL Profiler tool. Was wondering if anyone knew of a method for reading the transaction log for sql events that have occurred.
It is undocumented and the output doesn't show the actual SQL statement. Note that as with most undocumented dbcc commands you need to do a dbcc traceon(3604) first to see the output.
dbcc traceon (3604)
go
dbcc log ('dbname',4) /* options are 1-4 */
GO
dbcc traceoff (3604)
go
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.