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

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Automated Profiler trace Create

By Wanderer,

This stored procedure is created to be invoked (in my case by SQL Server scheduled job), and will then create a tracefile to a specified file location (ensure that if this is NOT local, your SQL Server Agent runs on a domain account that has access to that drive. The Stored procedure will create files of a certain size (specified via parameter), so that you can get several files, which I added to ease to file copying burden.

The code is documented moderately, and can be used as a template, upon which you can base and enhance to include/exclude your favourite events and filters.

Plerase feel free to respond with improvements, etc. And look for related scripts that automatically import the tracefiles into a database.

((Plese note, I have tested this and have run it on my production systems, but as always, any script you get should be carefully tested and understood before it goes enar any critial environment. No warranty etc. impied :0 ))

Total article views: 419 | Views in the last 30 days: 2
 
Related Articles
FORUM

Creating PK

Creating PK

FORUM

creating filegroup

creating filegroup

FORUM

create function

create function

FORUM

Create Permission in Schema

Create Permission

FORUM

can't create user

create user

 
Contribute