Does anyone have information on the file format used to hold SQL Profiler Templates (NOT Profiler trace files)? Or a way to create or parse these via C#?
Thanks very much.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, but you can programmatically create and run traces w/ the
sp_trace%family of stored procedures, if that helps at all.The process goes something like
sp_trace_create->sp_trace_setevent,sp_trace_setfilter->sp_trace_setstatusYou might also investigate extended events. The learning curve is a little steep, but they allow for more fine-grained data collection than a SQL trace, for some event types at least.