Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12345»»»

Default trace - A Beginner's Guide Expand / Collapse
Author
Message
Posted Tuesday, November 11, 2008 12:19 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 9:58 AM
Points: 2,280, Visits: 3,069
Comments posted to this topic are about the item Default trace - A Beginner's Guide



My blog: http://jahaines.blogspot.com
Post #600430
Posted Tuesday, November 11, 2008 1:19 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, December 11, 2014 1:37 AM
Points: 37, Visits: 672
I like it, but what's the cost of running this on a production server?

Measure twice, cut once





Post #600456
Posted Tuesday, November 11, 2008 2:58 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Monday, December 15, 2014 4:15 AM
Points: 5,471, Visits: 1,402
Nice one ...


Post #600510
Posted Tuesday, November 11, 2008 4:33 AM


UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Wednesday, January 2, 2013 12:15 PM
Points: 1,443, Visits: 711
Adam,
Well done! I think the default trace enabled by default? I checked my installations and it's enabled on all of them.

Mark
Post #600557
Posted Tuesday, November 11, 2008 6:44 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 9:58 AM
Points: 2,280, Visits: 3,069
Dee (11/11/2008)
I like it, but what's the cost of running this on a production server?

I cant really say what the exact cost is because the cost is dependent on multiple factors including usage. I will say that the trace is very light weight. In fact, most do not even know this guy is running in the background.




My blog: http://jahaines.blogspot.com
Post #600622
Posted Tuesday, November 11, 2008 6:48 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 9:58 AM
Points: 2,280, Visits: 3,069
Mark Horninger (11/11/2008)
Adam,
Well done! Is the default trace enabled by default?

Mark

Yes, you have to tell SQL to explicitly turn off this feature by issuing the sp_configure command.




My blog: http://jahaines.blogspot.com
Post #600625
Posted Tuesday, November 11, 2008 7:17 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 8:26 AM
Points: 10,381, Visits: 13,436
Adam,

Nice article. According to BOL you should use sys.traces instead of fn_trace_getinfo. Here is the BOL quote:

The sys.traces catalog view contains the current running traces on the system. This view is intended as a replacement for the fn_trace_getinfo function.


Also if you disable this trace many of the reports available in SSMS will no longer work as they get much of their information from this trace.




Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #600650
Posted Tuesday, November 11, 2008 7:30 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 9:58 AM
Points: 2,280, Visits: 3,069
Jack,

Thanks for the BOL quote. I find it somewhat amusing that MS states that sys.traces should be used instead of fn_get_trace_info on the sys.traces page; however, on the fn_trace_getinfo page makes absolutely no reference to sys.traces (even in the 2008 documentation).

Here is a link to the 2008 documentation
http://msdn.microsoft.com/en-us/library/ms173875.aspx

-Adam




My blog: http://jahaines.blogspot.com
Post #600664
Posted Tuesday, November 11, 2008 7:51 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 8:26 AM
Points: 10,381, Visits: 13,436
That is pretty funny.

sys.traces has more information and I find it to be in a more usable format than fn_trace_getinfo.




Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #600676
Posted Tuesday, November 11, 2008 10:12 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 1:46 PM
Points: 79, Visits: 1,331
For those of us working in "locked down" environments you will need to have 'ALTER TRACE' permission in order to execute fn_trace_getinfo.

Most likely this is the permission you would need for sys.traces, which was mentioned in a reply here, as well.

Post #600796
« Prev Topic | Next Topic »

Add to briefcase 12345»»»

Permissions Expand / Collapse