FIX: Objects May Fail to Retain Quoted Identifier Setting When You Use SQL-DMO to Create or Alter Objects (306334)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q306334
BUG #: 355242 (SHILOH_BUGS)

SYMPTOMS

When you use SQL Enterprise Manager or other SQL Distributed Management Objects (SQL-DMO) based utilities to create or alter stored procedures, then views, triggers or functions may not retain the desired Quoted Identifier setting.

CAUSE

The SQL-DMO code responsible for the creation and alteration does not properly synchronize the connection set options with the OBJECT PROPERTY of the specified object.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

WORKAROUND

To work around the problem, create or alter the procedures, views, triggers, or functions from a utility like Query Analyzer where you can explicitly control the ANSI NULLS and QUOTED IDENTIFIER settings.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 2000. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

Modification Type:MajorLast Reviewed:9/25/2003
Keywords:kbbug kbfix KB306334