FIX: Delete/Insert on Table with Text/Image May Cause Error 38ID: Q171369
|
In a user-defined transaction, if a row is deleted and then followed immediately with an INSERT operation to a table containing one or more columns of a text or image datatype, the following error messages may be received by the client application:
In addition, the following errors may be recorded in the error log:Msg 5159, Level 16, State 1
OS Error 38(Reached end of file.) on device 'C:\MSSQL\DATA\MASTER.DAT' during bufget.
The SQL Server is terminating this process.
To work around this problem, do not place the DELETE and INSERT operations in the same user-defined transaction.
Microsoft has confirmed this to be a problem in SQL Server version 6.0 and 6.5. This problem has been corrected for version 6.5 in U.S. Service Pack 4 for Microsoft SQL Server version 6.5. For information about downloading and installing the latest SQL Server Service Pack, see http://support.microsoft.com/support/sql/.
For more information, contact your primary support provider.
The following code segment demonstrates the problem:
use SMS
begin transaction
delete from SiteControl where SiteCode = 'RDG' and TypeFlag = 1
insert into SiteControl values ('RDG', 1, 0x0)
Additional query words: Transact-SQL T-SQL tsql tran-sql hang hung locked OS
Keywords : kbusage SSrvTran_SQL kbbug6.50 kbfix6.50.sp4 kbbug6.00
Version : winnt:6.0,6.5
Platform : winnt
Issue type : kbbug
Last Reviewed: May 4, 1999