dbTalk Databases Forums  

questions on SQL Profiler

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


Discuss questions on SQL Profiler in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
akkha1234@gmail.com
 
Posts: n/a

Default questions on SQL Profiler - 04-17-2007 , 04:26 PM






I am using SQL Profiler to monitor one of my database.
The temporary trace file is stored under C:\Documents and Settings\user
\Local Settings\Temp
by default. Is it possible to re-configure it to place to another
location as the file become huge after some time.

Thanks


Reply With Quote
  #2  
Old   
WCMassey@gmail.com
 
Posts: n/a

Default Re: questions on SQL Profiler - 04-17-2007 , 04:36 PM






On Apr 17, 2:26 pm, "akkha1... (AT) gmail (DOT) com" <akkha1... (AT) gmail (DOT) com> wrote:
Quote:
I am using SQL Profiler to monitor one of my database.
The temporary trace file is stored under C:\Documents and Settings\user
\Local Settings\Temp
by default. Is it possible to re-configure it to place to another
location as the file become huge after some time.

Thanks
Are you using SQL 2k or SQL 2k5? In SQL 2005, in the New Trace dialog,
there is a "save to file" option, where you can specify the drive to
log trace data to.

Alternatively, if you're doing the trace programmatically, you can set
a param to denote location to save trace to.

Chadd



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

Default Re: questions on SQL Profiler - 04-17-2007 , 04:44 PM



akkha1234 (AT) gmail (DOT) com (akkha1234 (AT) gmail (DOT) com) writes:
Quote:
I am using SQL Profiler to monitor one of my database.
The temporary trace file is stored under C:\Documents and Settings\user
\Local Settings\Temp
by default. Is it possible to re-configure it to place to another
location as the file become huge after some time.
You can change the TEMP and TMP environment variables in the System
applet in the Control Panel. (Under the Advanced tab.)


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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #4  
Old   
akkha1234@gmail.com
 
Posts: n/a

Default Re: questions on SQL Profiler - 04-17-2007 , 05:11 PM



Changing the location of trace file does not serve the purposes.
Changing the TMP is the answer and you have to log off and then login
to make it to be effective for profiler.
Thanks for both of you anyway for the prompt response. Now I know a
bit more about the windows environment.


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.