dbTalk Databases Forums  

SQL Profiler Stops By Itself

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss SQL Profiler Stops By Itself in the microsoft.public.sqlserver.tools forum.



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

Default SQL Profiler Stops By Itself - 09-25-2009 , 01:51 PM






When I start SQL Server Profiler, it says trace is starting at the bottom,
and may return rows for a few seconds, but then it stops saying "Trace is
stopped".

Event viewer does not show any errors, but does provide the following events
every few seconds.

SQL Trace ID 2 was started by login "xxxxxx\xxxxxx".
SQL Trace stopped. Trace ID = '2'. Login Name = 'xxxxxx\xxxxxx'.
SQL Trace ID 3 was started by login "xxxxxx\xxxxxx".
SQL Trace stopped. Trace ID = '3'. Login Name = 'xxxxxx\xxxxxx'.

It alternates between ID 2 and 3 several times per minute.

Does anyone have any ideas / suggestions?

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

Default Re: SQL Profiler Stops By Itself - 09-25-2009 , 04:13 PM






Larry (Larry (AT) discussions (DOT) microsoft.com) writes:
Quote:
When I start SQL Server Profiler, it says trace is starting at the bottom,
and may return rows for a few seconds, but then it stops saying "Trace is
stopped".

Event viewer does not show any errors, but does provide the following
events every few seconds.

SQL Trace ID 2 was started by login "xxxxxx\xxxxxx".
SQL Trace stopped. Trace ID = '2'. Login Name = 'xxxxxx\xxxxxx'.
SQL Trace ID 3 was started by login "xxxxxx\xxxxxx".
SQL Trace stopped. Trace ID = '3'. Login Name = 'xxxxxx\xxxxxx'.

It alternates between ID 2 and 3 several times per minute.

Does anyone have any ideas / suggestions?
Have you by chance enabled "Trace Stop time" on the first page in the
configuration?



--
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
  #3  
Old   
Larry
 
Posts: n/a

Default Re: SQL Profiler Stops By Itself - 09-28-2009 , 02:38 PM



Erland,

No. This is not the problem. Any more ideas?

Thanks,
Larry

"Erland Sommarskog" wrote:

Quote:
Larry (Larry (AT) discussions (DOT) microsoft.com) writes:
When I start SQL Server Profiler, it says trace is starting at the bottom,
and may return rows for a few seconds, but then it stops saying "Trace is
stopped".

Event viewer does not show any errors, but does provide the following
events every few seconds.

SQL Trace ID 2 was started by login "xxxxxx\xxxxxx".
SQL Trace stopped. Trace ID = '2'. Login Name = 'xxxxxx\xxxxxx'.
SQL Trace ID 3 was started by login "xxxxxx\xxxxxx".
SQL Trace stopped. Trace ID = '3'. Login Name = 'xxxxxx\xxxxxx'.

It alternates between ID 2 and 3 several times per minute.

Does anyone have any ideas / suggestions?

Have you by chance enabled "Trace Stop time" on the first page in the
configuration?



--
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
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQL Profiler Stops By Itself - 09-28-2009 , 04:40 PM



Larry (Larry (AT) discussions (DOT) microsoft.com) writes:
Quote:
No. This is not the problem. Any more ideas?
Seems like you need to set up a server-side trace to see which spids that
runs sp_trace_setstatus.

You can set up such a trace in Profiler, then select Export as SQL
Script. Then run the script, and the play with Profiler. You can use
fn_trace_gettable to get the data for the trace.



--
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.