Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


sp_trace_getdata SP


sp_trace_getdata SP

Author
Message
pavargasq
pavargasq
SSC Rookie
SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)

Group: General Forum Members
Points: 40 Visits: 135
In a production system i've seen a store procedure running all the time

exec [master].dbo.sp_trace_getdata 8

even thouh i kill the proccess 1 minute later it shows uo again
could anybody tell me what it does and if this SP produces an overhead to the system?

Is there any way to know who or which client application is triggerring thas SP (Maybe a SQL Profiler) ?

If this SP produce an overhead how can i deactivate this SP ?
Thanks in advanced
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14973 Visits: 38992
sp_trace_getdata is used by SQL Profiler to read it's trace and return the results to the SQL Profiler GUI/application;

SQL Profiler is definitely known to have an impact on SQL server...it potentially can have a very severe performance impact if the trace is catching lots of events.

the way to deactivate it is to not allow anyone to run SQL Profiler;
you can see who's running it by running sp_who2, and find any thing that has ProgramName like SQL Profiler.
For that row(s) , look at the username and the hostname, so you know who is using Profiler, and at what machine, and make them stop using profiler.


if you need to trace something , make a server side trace and use that instead; SQL Profiler can make the trace definition for you.

a server side trace has a much much lighter impact on the server.

Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

pavargasq
pavargasq
SSC Rookie
SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)

Group: General Forum Members
Points: 40 Visits: 135
OK Thanks. Ive got the user and hostname, Im no a DBA and the question is how to make them stop using profiler ?(Maybe denyng EXEC permissios to the user ?

secondly youre right when you said it is to not allow anyone to run SQL Profiler becase when i open the tracer in the SQL profiler the reply/stop buttons are disable, besides i tested one select commands i found useful in an article posted in this great forum how to stop it from running but didnt work out, maybe you can help me out:

Execute "select * FROM ::fn_trace_getinfo(default)" - OK
Identify the traceid you using the folder name specified when starting the trace. OK

THE BELOW SENTENCES yielded me an error:

Execute these two commands replacing # with the trace id.
EXEC sp_trace_setstatus @traceid = #, @status = 0; -- Stop/pause Trace
EXEC sp_trace_setstatus @traceid = #, @status = 2; -- Close trace and delete it from the server

Server: Msg 19070, Level 16, State 1, Procedure sp_trace_setstatus, Line 1
The default trace cannot be stopped or modified. Use SP_CONFIGURE to turn it off.
the above error doent have to do with permissions or something likke that ?
How can i solve it ?
Thnaks a lot in advanced
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search