sp-reset-connection

Can I stop sp_reset_connection being called to improve performance?

随声附和 提交于 2019-12-03 11:50:46
问题 My profiler trace shows that exec sp_reset_connection is being called between every sql batch or procedure call. There are reasons for it, but can I prevent it from being called, if I'm confident that it's unnecessary, to improve performance? UPDATE: The reason I imagine this could improve performance is twofold: SQL Server doesn't need to reset the connection state. I think this would be a relatively negligible improvement. Reduced network latency because the client doesn't need to send down

What does “exec sp_reset_connection” mean in Sql Server Profiler? [duplicate]

二次信任 提交于 2019-11-26 21:25:40
This question already has an answer here: What does sp_reset_connection do? 2 answers Trying to understand what Sql Profiler means by emitting "sp_reset_connection". I have the following, "exec sp_reset_connection" line followed by BatchStarting and Completed, RPC:Completed exec sp_reset_connection SQL:BatchStarting SELECT [c].[TestID] AS [TestID], [c].[Description] AS [Description] FROM [dbo].[Test] AS [c] SQL:BatchCompleted SELECT [c].[TestID] AS [TestID], [c].[Description] AS [Description] FROM [dbo].[Test] AS [c] Basically does first line "exec sp_reset_connection" mean the whole process

What does “exec sp_reset_connection” mean in Sql Server Profiler? [duplicate]

人走茶凉 提交于 2019-11-26 12:18:03
问题 This question already has answers here : What does sp_reset_connection do? (2 answers) Closed last year . Trying to understand what Sql Profiler means by emitting \"sp_reset_connection\". I have the following, \"exec sp_reset_connection\" line followed by BatchStarting and Completed, RPC:Completed exec sp_reset_connection SQL:BatchStarting SELECT [c].[TestID] AS [TestID], [c].[Description] AS [Description] FROM [dbo].[Test] AS [c] SQL:BatchCompleted SELECT [c].[TestID] AS [TestID], [c].