dbTalk Databases Forums  

Change trace log/file location

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Change trace log/file location in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
xo
 
Posts: n/a

Default Change trace log/file location - 05-13-2010 , 02:22 PM






Hi -

I have questions on deadlock tracing and hope someone can help.

I enabled deadlock trace with dbcc traceon (1222, 1204, -1), and I
want to redirect the result to a log/trace file away from the sql
server error log.

Is there a way and how should it be done? Does it require an instance/
server bounce?

Thanks in advance.

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Change trace log/file location - 05-13-2010 , 04:16 PM






xo (xo5555ox (AT) gmail (DOT) com) writes:
Quote:
I have questions on deadlock tracing and hope someone can help.

I enabled deadlock trace with dbcc traceon (1222, 1204, -1), and I
want to redirect the result to a log/trace file away from the sql
server error log.
As far as I know this is not possible per se. However, you can set up a
server side trace that include Deadlock Graph as the single event.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.