SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to find if someone ran SQL profiler 2 days back


How to find if someone ran SQL profiler 2 days back

Author
Message
gary1
gary1
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18824 Visits: 2354
Hi

Is there a way we can find if someone ran SQL profiler 2 days back?
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)

Group: General Forum Members
Points: 847563 Visits: 46675
gary1 - Tuesday, March 13, 2018 3:43 PM
Hi

Is there a way we can find if someone ran SQL profiler 2 days back?


Not likely.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
GilaMonster
GilaMonster
SSC Guru
SSC Guru (887K reputation)SSC Guru (887K reputation)SSC Guru (887K reputation)SSC Guru (887K reputation)SSC Guru (887K reputation)SSC Guru (887K reputation)SSC Guru (887K reputation)SSC Guru (887K reputation)

Group: General Forum Members
Points: 887946 Visits: 48655
Short of asking people, no.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Eirikur Eiriksson
Eirikur Eiriksson
SSC Guru
SSC Guru (154K reputation)SSC Guru (154K reputation)SSC Guru (154K reputation)SSC Guru (154K reputation)SSC Guru (154K reputation)SSC Guru (154K reputation)SSC Guru (154K reputation)SSC Guru (154K reputation)

Group: General Forum Members
Points: 154396 Visits: 22769
gary1 - Tuesday, March 13, 2018 3:43 PM
Hi

Is there a way we can find if someone ran SQL profiler 2 days back?

Hmmm! you don't know if the profiler was run nor who might have possibly done so? Somehow I thing you have a bigger problem on your hands.
Cool
May I ask what is the reason for this, were there performance problems?

Sue_H
Sue_H
SSC Guru
SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)

Group: General Forum Members
Points: 67104 Visits: 13928
gary1 - Tuesday, March 13, 2018 3:43 PM
Hi

Is there a way we can find if someone ran SQL profiler 2 days back?


If you still have default traces from that time, it would be in there.
Event class would be Audit Server Alter Trace Event. You'd look for exec sp_trace_create in the text data. Application name would be SQL Server Profiler - xxxxxxx

Sue



Jeffery Williams
Jeffery Williams
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5080 Visits: 1054
Eirikur Eiriksson - Wednesday, March 14, 2018 5:30 AM
gary1 - Tuesday, March 13, 2018 3:43 PM
Hi

Is there a way we can find if someone ran SQL profiler 2 days back?

Hmmm! you don't know if the profiler was run nor who might have possibly done so? Somehow I thing you have a bigger problem on your hands.
Cool
May I ask what is the reason for this, were there performance problems?

True that!


<hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williamshttp://www.linkedin.com/in/jwilliamsoh
Jeffery Williams
Jeffery Williams
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5080 Visits: 1054
gary1 - Tuesday, March 13, 2018 3:43 PM
Hi

Is there a way we can find if someone ran SQL profiler 2 days back?

How many people have sufficient rights to run profiler? This gives a pretty granular (perhaps in the wrong hands dangerous look) at your environment.


<hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williamshttp://www.linkedin.com/in/jwilliamsoh
Enterprise DBA
Enterprise DBA
SSC-Addicted
SSC-Addicted (410 reputation)SSC-Addicted (410 reputation)SSC-Addicted (410 reputation)SSC-Addicted (410 reputation)SSC-Addicted (410 reputation)SSC-Addicted (410 reputation)SSC-Addicted (410 reputation)SSC-Addicted (410 reputation)

Group: General Forum Members
Points: 410 Visits: 399
Gary1,
Traces started by Profiler are recorded in the errorlog. sp_readerrorlog 0, 1, ‘trace’.
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (208K reputation)SSC Guru (208K reputation)SSC Guru (208K reputation)SSC Guru (208K reputation)SSC Guru (208K reputation)SSC Guru (208K reputation)SSC Guru (208K reputation)SSC Guru (208K reputation)

Group: General Forum Members
Points: 208683 Visits: 18553
gary1 - Tuesday, March 13, 2018 3:43 PM
Hi

Is there a way we can find if someone ran SQL profiler 2 days back?

the sql error log will record a trace start and trace stop event with the trace id and the user id who initiated it


-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)SSC Guru (847K reputation)

Group: General Forum Members
Points: 847563 Visits: 46675
Perry Whittle - Thursday, March 15, 2018 6:00 AM

the sql error log will record a trace start and trace stop event with the trace id and the user id who initiated it

Enterprise DBA - Wednesday, March 14, 2018 3:16 PM
Gary1,Traces started by Profiler are recorded in the errorlog. sp_readerrorlog 0, 1, ‘trace’.

Thank you both for that. Learned something new.


--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
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