The information in this article applies to:
BUG #: 16814 (NT: 6.5) SYMPTOMS
A stored procedure that creates a temporary table without explicitly
specifying column nullability and INSERTS into that table will fail with
an error 511 if the procedure was created with ANSI_NULL_DFLT_ON set on,
and is run with ANSI_NULL_DFLT_ON set off. This problem occurs if you do
all of the following:
WORKAROUND
To work around this problem, do either of the following:
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 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
A similar problem occurs if the tables created in the procedure are
permanent tables. For more information, see the following article in the
Microsoft Knowledge Base:
Q167605 : BUG: Err 511: Stored Proc w/ANSI_NULL_DFLT_ON Creates Perm Tbl
Keywords : kbusage SSrvStProc kbbug6.50 kbbug6.00 kbfix6.50.sp2 |
Last Reviewed: April 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |