FIX: Sp_droplogin Error 14248 if ANSI_NULL_DFLT_ONLast reviewed: May 1, 1997Article ID: Q135402 |
The information in this article applies to:
SYMPTOMSWhen you try to execute the system stored procedure sp_droplogin on Microsoft SQL Server version 6.0 and enable SET ANSI_NULL_DFLT_ON, the following error message appears:
Error: 14248 Message: "This login is the owner of 11 Task(s). You must drop or re-assign these Tasks before the login can be dropped."The Microsoft SQL Server ODBC driver versions 2.50.0121 or later always sets ANSI_NULL_DFLT_ON to ON when running against SQL Server 6.0. Therefore, any attempt to execute sp_droplogin from an ODBC session using the driver results in the following:
szSqlState = "37000" pfNativeError = 14248 pcbErrorMsg = 159 szErrorMsg="[Microsoft][ODBC SQL Server Driver][SQL Server] This login is the owner of 11 Task(s). You must drop or re-assign these Tasks before the login can be dropped." WORKAROUNDDB-Library clients such as ISQL/w or Enterprise Manager sets the following:
SET ANSI_NULL_DFLT_ON OFF EXEC sp_droplogin... SET ANSI_NULL_DFLT_ON ONIt is recommended that sites do not use ODBC to issue sp_droplogin against SQL Server 6.0.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.0. This problem has been corrected in SQL Server version 6.5. Contact your primary support provider for more information.
|
Additional query words: SQL Server ODBC 16-bit
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |