可以“exec sp_reset_connection”在运行优化顾问之前从 SQL Server Profiler 跟踪数据中删除?
根据我读到的有关当连接池存在时出现在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在列过滤器中设置 TextData 不像 exec sp_reset_connection
In Column Filters set TextData Not Like exec sp_reset_connection
参考@Arnie答案,您应该在文本后附加%,因此您应该使用exec sp_reset_connection%进行过滤。
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%.
https://learn.microsoft.com/en-us/sql/relational-databases/sql-trace/filter-a-trace?view=sql-server-ver15
如果您想使用 ADO.NET 连接池< /a> ,答案是:
绝对不是!
If you want to use ADO.NET Connection Pooling , the answer is:
Absolutely not!
我成功地对一堆 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.