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


Automated Trace File Collection


Automated Trace File Collection

Author
Message
lowellismith
lowellismith
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 50
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/losmith/automatedtracefilecollection.asp



cppwiz
cppwiz
SSC-Enthusiastic
SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)

Group: General Forum Members
Points: 184 Visits: 470
This is a good article but the examples are just for testing the trace features. To set up a regular (daily) trace, the article written by Haidong Ji titled "Using SQL Trace to Audit Database Access" has better examples of the steps needed. The VBScript is nice to know, but unnecessary. The FN_TRACE_GETTABLE will automatically import all files with the same file name plus "_x" where x is a sequential number. (example trace_1.trc) Instead of scheduling a job to run every ten minutes and calling the SP_TRACE_SETSTATUS, setting the stop time on the SP_TRACE_CREATE parameter would be less costly.

Haidong Ji's article is here:
http://www.sqlservercentral.com/columnists/hji/trace.asp



Roger Abram
Roger Abram
SSC-Enthusiastic
SSC-Enthusiastic (139 reputation)SSC-Enthusiastic (139 reputation)SSC-Enthusiastic (139 reputation)SSC-Enthusiastic (139 reputation)SSC-Enthusiastic (139 reputation)SSC-Enthusiastic (139 reputation)SSC-Enthusiastic (139 reputation)SSC-Enthusiastic (139 reputation)

Group: General Forum Members
Points: 139 Visits: 318
I ran the SQL script found at http://www.sqlservercentral.com/columnists/losmith/automatedtracefilecollection.asp

and get the following message when it completes:

Msg 19055, Level 16, State 1, Procedure sp_trace_setfilter, Line 1
Filters with the same event column ID must be grouped together.

(1 row(s) affected)

Does anyone know how to correct that script so as not to receive that message?

Thank you.

Roger
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