BUG: If ANSI_DEFAULTS On, Join Sequences in St. Procs Cause AVLast reviewed: March 6, 1998Article ID: Q175142 |
The information in this article applies to:
SYMPTOMSIf ANSI_DEFAULTS are on, and you repeatedly perform CREATE TABLE, INSERT joins, and UPDATE joins from within a stored procedure, an ANSI warning may be generated. This can cause a variety of access violation (AV) errors, and the server may stop responding (hang). The problem can occur on all versions of SQL Server from build 6.50.201 through build 6.50.266. The problem does not occur on SQL Server version 6.0, because the ANSI_DEFAULTS setting does not exist in that version. The Microsoft ODBC SQL Server driver version 2.65 sets ANSI_DEFAULTS on by default when running with SQL Server 6.5. Therefore, this behavior may be more likely to occur with an ODBC application than with a DB-Library application. The problem conditions do not require multiple concurrent query instances, and can happen during a single query stream. Errors received include error numbers 510, 605, 614, 2620, and 2624. The frequency of occurrence varies. The following are some error messages that you may receive:
WORKAROUNDYou can use any of several methods to work around the problem, including the following:
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.5. A supported fix is now available, but has not been fully regression- tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information.
MORE INFORMATIONSetting ANSI_DEFAULTS on enables several individual behaviors. The following specific combination of ANSI settings is necessary for the problem to occur:
|
Additional query words: hang hung sproc stproc proc st dblib db-lib
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |