开发者

Can "exec sp_reset_connection" be removed from SQL Server Profiler trace data before running the tuning advisor?

开发者 https://www.devze.com 2023-01-13 19:10 出处:网络
Based on information I have read about t开发者_如何转开发he \"exec sp_reset_connection\" which appears in SQL Server Profiler trace data when connection pooling exists, it seems safe--or logical, rath

Based on information I have read about t开发者_如何转开发he "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?


In Column Filters set TextData Not Like exec sp_reset_connection


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消