BUG: SP_DBOPTION May Not Set the Database ANSI_NULL_DEFAULT Option When You Use Turkish Collation (298564)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q298564
BUG #:353996 (SHILOH_BUGS)
SYMPTOMS
An attempt to set the ANSI NULL DEFAULT database option by using SQL Enterprise Manager (SEM) or the sp_dboption stored procedure on a computer that is running SQL Server with a SQL Server Turkish collation or Microsoft Windows Turkish Collation may not succeed.
An example of such a collation for SQL Server is:
- SQL_Latin1_General_CP1254_CI_AS
An example of such a collation for Windows collation:
- Turkish_BIN for SQL collation
From the SQL Server Query Analyzer, you see the following message, but the option does not change:
The command(s) completed successfully.
WORKAROUND
To work around this problem, use the ALTER DATABASE Transact-SQL command to set the ANSI_NULL_DEFAULT option.
For example, in the Northwind database, execute the following statement from Query Analyzer:
ALTER DATABASE Northwind SET ANSI_NULL_DEFAULT ON
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbBug kbpending KB298564 |
---|
|