FIX: Rollback of Transactions Named as Empty String Cause Access Violations (260254)



The information in this article applies to:

  • Microsoft SQL Server 7.0

This article was previously published under Q260254
BUG #: 57428 (SQLBUG_70)

SYMPTOMS

When a transaction with a transaction name that is an empty string (that is, ' ') is rolled back, the connection or spid leaves the transaction open. For example:
create table mytab (col1 int primary key)
go
insert into mytab values (1)
go
declare @x varchar(10)
set @x = ''
begin tran
insert into mytab values (1)
rollback tran @x
go
				
When you try to commit or rollback the same transaction in the same spid or you close the connection or kill the spid from another connection, the spid with the open transaction causes an access violation with a fatal exception, which results in a server down.

WORKAROUND

Do not use an empty string as a transaction name.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0

For more information, contact your primary support provider.

Modification Type:MajorLast Reviewed:3/14/2006
Keywords:kbBug kbfix KB260254