Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating SQL Profiler in SQL 2000

Status
Not open for further replies.

mutley1

MIS
Joined
Jul 24, 2003
Messages
909
Sorry guys,

Wasn't sure if this was a setup / admin or programming question. I have a tdf file that will basically run to collect data for any SP's / TSQL statements that run for over 5000ms, DBID above 4 and objectid > 100.

The events are ONLY SP: Stored Procedure Completed and TSQL: SQL StmtCompleted.

I am running this from a dev server to collect info from the live server, and the data is being stored on the dev server in a table.

Eg. DEV1\d:\myfolder holds the tdf file. This will run on DEV1 but report on PROD1 with given criteria. It will write to DEV1..DBAdmin.resultstable.

question is, I am running ths manually at the moment so every time I put the right server to trace and the server / table to store data to I am going to overwrite whatever is there (or create loads of tables).

Long and short is I would like to run this for maybe a week at a time, but automate it and still write to the same table to keep all history. I have scripted it out using the tools in SQL Profiler, but it does not point to a server / table or anything (bear in mind I am running from DEV to gather PROD info and writing to DEV).

Any help much appreciated.

Cheers,

M.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top