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

Script to remove old trace files Expand / Collapse
Author
Message
Posted Monday, January 14, 2008 2:38 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, August 14, 2008 12:27 PM
Points: 2, Visits: 13
I have a requirement of running the profiler in SQL server 2000 continously till we are able to capture a specific error in the application accessing the database.

We want a script which will keep deleting the trace file (.trc) older than 3 hours to prevent the disk from getting filled up by the trace files.

Please help.
Post #442699
Posted Monday, January 14, 2008 2:54 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 8:21 AM
Points: 31,278, Visits: 15,730
http://www.sqlservercentral.com/articles/Administering/usingvbscripttoautomatetasks/1171/






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #442712
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse