I was testing a stored procedure which contained a explicit transaction (BEGIN TRAN) unfortunatly the sp errored and did not rollback the transaction and now the tempdb has 2 open transactions (i ran it twice before I realised) according to Activity Monitor, but DBCC OPENTRAN returns "No active open transactions".
I have restarted the dbengine and then the pc, but still they are there and it is stopping me from running the sp again with the error "The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction."
Does anyone know how to fix?
Thanks,
Lee.
itlee. MCP\Analyst\Programmer\SQL\.NET\VB\C#
I have restarted the dbengine and then the pc, but still they are there and it is stopping me from running the sp again with the error "The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction."
Does anyone know how to fix?
Thanks,
Lee.
itlee. MCP\Analyst\Programmer\SQL\.NET\VB\C#