SQL 事件探查器模板文件格式

发布于 2024-09-17 18:19:39 字数 92 浏览 1 评论 0原文

有谁知道用于保存 SQL Profiler 模板(不是 Profiler 跟踪文件)的文件格式的信息吗?或者通过 C# 创建或解析它们的方法?

非常感谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱要勇敢去追 2024-09-24 18:19:39

不可以,但您可以使用 sp_trace% 系列存储过程以编程方式创建和运行跟踪(如果有帮助的话)。

该过程类似于 sp_trace_create -> sp_trace_seteventsp_trace_setfilter -> sp_trace_setstatus

您还可以调查扩展事件。学习曲线有点陡峭,但它们允许比 SQL 跟踪更细粒度的数据收集,至少对于某些事件类型而言。

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_setstatus

You 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文