Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading a Transaction Log

Status
Not open for further replies.

WDfog

Programmer
Oct 16, 2000
26
US
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.

Thanks
 
Use the dbcc log command.

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


You can purchase a third-party tool.

Logview from Log Analyzer from Terry Broadbent


"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top