Tag: sp reset connection

Sql Server Profiler中的“exec sp_reset_connection”是什么意思?

尝试通过发出“sp_reset_connection”来理解Sql Profiler的含义。 我有以下的“exec sp_reset_connection”行,然后是BatchStarting和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] 基本上第一行“exec sp_reset_connection”是指整个过程(我的连接被打开,select stmt运行,然后连接closures并释放回池)刚刚发生? 或者我的联系还处于开放阶段。 而且,为什么在我自己的select语句之前执行sp_reset_connection,是不是应该在用户的sql之后重置呢? 我试图知道是否有一种方式来更详细地了解连接打开和closures时的情况? 通过看到“exec sp_reset_connection”,这是否意味着我的连接closures?