可以“exec sp_reset_connection”在运行优化顾问之前从 SQL Server Profiler 跟踪数据中删除?

发布于 2024-09-16 02:31:01 字数 135 浏览 0 评论 0原文

根据我读到的有关当连接池存在时出现在 SQL Server Profiler 跟踪数据中的“exec sp_reset_connection”的信息,从数据库考虑的跟踪数据中删除/排除它似乎是安全的——或者说是合乎逻辑的。调整顾问。有什么想法或反对意见吗?

Based on information I have read about the "exec sp_reset_connection" which appears in SQL Server Profiler trace data when connection pooling exists, it seems safe--or logical, rather--to remove/exclude it from trace data to be considered by the Database Tuning Advisor. Any thoughts or objections?

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

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

发布评论

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

评论(4

风吹过旳痕迹 2024-09-23 02:31:01

在列过滤器中设置 TextData 不像 exec sp_reset_connection

In Column Filters set TextData Not Like exec sp_reset_connection

弥繁 2024-09-23 02:31:01

参考@Arnie答案,您应该在文本后附加%,因此您应该使用exec sp_reset_connection%进行过滤。

如果从 osql 实用程序或 sqlcmd 实用程序跟踪事件,则始终
将 % 附加到 TextData 数据列上的筛选器。

https://learn.microsoft.com/en-us/sql/relational-databases/sql-trace/filter-a-trace?view=sql-server-ver15

Referring to @Arnie answer you should append % after the text, so you should filter with exec sp_reset_connection%.

If tracing events from the osql utility or the sqlcmd utility, always
append % to filters on the TextData data column.

https://learn.microsoft.com/en-us/sql/relational-databases/sql-trace/filter-a-trace?view=sql-server-ver15

好多鱼好多余 2024-09-23 02:31:01

If you want to use ADO.NET Connection Pooling , the answer is:
Absolutely not!

终遇你 2024-09-23 02:31:01

我成功地对一堆 Profiler 跟踪数据运行了数据库优化顾问,排除了“exec sp_reset_connection”,并且一切正常。因此,据我所知,排除该数据似乎不会产生任何负面影响。

I successfully ran the Database Tuning Advisor on a bunch of Profiler trace data that excluded the "exec sp_reset_connection" and everything worked fine. So, as far as I can tell, there don't seem to be any negative side effects of excluding that data.

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