FIX: BCP Into a TEXT Column May Cause SQL Server to Stop Executing

Article translations Article translations
Article ID: 246139 - View products that this article applies to.
This article was previously published under Q246139
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 56536 (SQLBUG_70)
Expand all | Collapse all

SYMPTOMS

If the database log file has a limiting size option, such as a defined MAXSIZE or set FILEGROWTH = 0, and logged extent allocations fill the log during a nonlogged "BCP in" into a table with a TEXT column, the SQL Server process stops executing. There is be a stack dump for each spid, including system spids, written to the errorlog. The errorlog reports a 9002 error and CTRL-C does not stop the BCP command.

Summary of Events
  1. BCP a text file into a table with a table that has a TEXT column in a database where the log is not allowed to grow.
  2. The log fills and a 9002 error is written to the errorlog:
    Error: 9002, Severity: 17, State: 2
    The log file for database '%.*ls' is full. Back up the transaction log for the database to free up some log space.
  3. The BCP window may stop responding or return with the following and no rows are inserted into the destination table:
    1000 rows sent to SQL Server. Total sent: 30000
    SQLState = 37000, NativeError = 9002
    Error = [Microsoft][ODBC SQL Server Driver][SQL Server]The log file for database '%.*ls' is full. Back up the transaction log for the database to free up some log space.
    Error = [Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler: Process 7 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
  4. Stack dumps for every spid are printed to the errorlog.
  5. The SQL Server process may stop executing or remain in an unusable state.

WORKAROUND

You can use any one of the following to work around this problem:

  • Force the BCP operation to be logged by making sure that the SELECT INTO/BULK COPY option is turned off for the database.

  • Use the BULK INSERT statement.

  • Try the BCP command using the -b switch to limit the size of the batch.

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.

MORE INFORMATION

You may also encounter this bug if you use Data Transformation Services (DTS) to transfer objects if the specified conditions are met.

Properties

Article ID: 246139 - Last Review: October 22, 2013 - Revision: 2.1
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB246139

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com