Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by adam haines
»
Default trace - A Beginner's Guide
60 posts, Page 1 of 6
1
2
3
4
5
»
»»
Default trace - A Beginner's Guide
Rate Topic
Display Mode
Topic Options
Author
Message
Adam Haines
Adam Haines
Posted Tuesday, November 11, 2008 12:19 AM
SSCrazy
Group: General Forum Members
Last Login: Monday, May 20, 2013 9:39 PM
Points: 2,278,
Visits: 2,998
Comments posted to this topic are about the item
Default trace - A Beginner's Guide
My blog:
http://jahaines.blogspot.com
Post #600430
ekoner
ekoner
Posted Tuesday, November 11, 2008 1:19 AM
SSC Rookie
Group: General Forum Members
Last Login: Yesterday @ 4:14 AM
Points: 37,
Visits: 594
I like it, but what's the cost of running this on a production server?
Measure twice, cut once
Post #600456
Anipaul
Anipaul
Posted Tuesday, November 11, 2008 2:58 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Yesterday @ 1:35 AM
Points: 4,789,
Visits: 1,336
Nice one ...
Post #600510
SuperDBA-207096
SuperDBA-207096
Posted Tuesday, November 11, 2008 4:33 AM
UDP Broadcaster
Group: General Forum Members
Last Login: Wednesday, January 02, 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
Adam Haines
Adam Haines
Posted Tuesday, November 11, 2008 6:44 AM
SSCrazy
Group: General Forum Members
Last Login: Monday, May 20, 2013 9:39 PM
Points: 2,278,
Visits: 2,998
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
Adam Haines
Adam Haines
Posted Tuesday, November 11, 2008 6:48 AM
SSCrazy
Group: General Forum Members
Last Login: Monday, May 20, 2013 9:39 PM
Points: 2,278,
Visits: 2,998
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
Jack Corbett
Jack Corbett
Posted Tuesday, November 11, 2008 7:17 AM
SSChampion
Group: General Forum Members
Last Login: Friday, May 17, 2013 12:22 PM
Points: 10,571,
Visits: 11,871
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
Adam Haines
Adam Haines
Posted Tuesday, November 11, 2008 7:30 AM
SSCrazy
Group: General Forum Members
Last Login: Monday, May 20, 2013 9:39 PM
Points: 2,278,
Visits: 2,998
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
Jack Corbett
Jack Corbett
Posted Tuesday, November 11, 2008 7:51 AM
SSChampion
Group: General Forum Members
Last Login: Friday, May 17, 2013 12:22 PM
Points: 10,571,
Visits: 11,871
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
Adam Gojdas
Adam Gojdas
Posted Tuesday, November 11, 2008 10:12 AM
SSC Journeyman
Group: General Forum Members
Last Login: Friday, March 22, 2013 3:37 PM
Points: 79,
Visits: 1,317
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 »
60 posts, Page 1 of 6
1
2
3
4
5
»
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.