FIX: SQL Terminates on Repeated Cursor Calls w/ ODS Handlers

Last reviewed: April 8, 1997
Article ID: Q153917
The information in this article applies to:
  • Microsoft SQL Server version 6.5

SYMPTOMS

A DB-Library application making repeated cursor calls encounters one or more of the following errors:

   SQL Server message 1101, state 1, severity 17: unable to allocate new
   page for database 'tempdb'. There are no more pages available on valid
   allocation pages.

   space can be created by dropping objects, extending the database or
   dumping the log with no_log.

   DB-LIBRARY error:  General SQL Server error: Check error messages from
   SQL Server

CAUSE

SQL Server terminates when repetitive queries with sp_cursoropen/fetch are called with ODS handlers installed.

The unhandled exception at the server causes the following lines in the error log:

   96/04/08 21:00:15.41 spid11
   ************************************************************************
   *******
   96/04/08 21:00:15.71 spid11   *
   96/04/08 21:00:15.72 spid11   * STACK DUMP:
   96/04/08 21:00:15.72 spid11   *
   96/04/08 21:00:15.73 spid11   *   Exception Address = 77F64F09

WORKAROUND

Stop any ODS applications, such as SQL Trace, that may be running at the server. This causes the ODS handlers to be de-installed and prevents the server from terminating.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

MORE INFORMATION

With any ODS handlers installed and DB-Library applications making repeated dbopen/dbcursorfetchex calls in a loop, the server terminates. Windows NT service Control Manager confirms that the service has been terminated, and the above partial stack dump is seen in the error log.

Any ODS application, such as SQL Trace, can cause this problem. An alternative to SQL Trace is to use server side tracing, using Trace Flags.


Additional query words: trace server av
Keywords : kbbug6.50 kbfix6.50.sp2 kbnetwork SSrvODS
Version : 6.5
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.