BUG: The Distribution Agent or the Merge Agent does not succeed when you replicate stored procedures or views in SQL Server 2000 (832902)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
SYMPTOMSIf you configure a Snapshot replication, a Transactional replication, or a Merge
replication to replicate stored procedures or views that were created when
the QUOTED_IDENTIFIER option was set to OFF, the Distribution Agent or the Merge Agent
may not succeed and you may receive one of the following error messages when you apply the snapshot to
the subscriber: Message 1Invalid column name 'Column
Name'. Message 2 Cannot use empty object
or column names. Use a single space if necessary. Message 3 The name 'Object Name' is not permitted in this
context. Only constants, expressions, or variables allowed here. Column names
are not permitted. CAUSEThis problem occurs because the Snapshot Agent always sets the QUOTED_IDENTIFIER option to ON, regardless of the actual
setting. Therefore,
if the stored procedures or views use double quotation marks, the Distribution
Agent or the Merge Agent assumes the default behavior of using double quotation marks for
identifiers only. Therefore, you receive one or more of the error messages that appear in the
"Symptoms" section of this article.WORKAROUNDTo work around this problem, do any one of the
following:
- Method 1: Remove the double quotation marks
Edit the stored procedures or views that are participating in the replication so that
double quotation marks do not appear in the corresponding stored procedures or
views. - Method 2: Use Backup and Restore
Synchronize the
replication subscriptions by applying the snapshots to the subscriber
manually.
For additional
information, click the following article number to view the article in the
Microsoft Knowledge Base: 320499
HOW TO: Manually Synchronize Replication Subscriptions by Using Backup
or Restore
- Method 3: Use Data Transformation Services (DTS)
Synchronize the replication subscriptions by
using the DTS packages to move the stored procedures or views that contain double quotation marks to the subscribers. To synchronize the
subscriptions regularly, schedule the DTS packages
accordingly.
For additional information about DTS,
click the following article number to view the article in the Microsoft
Knowledge Base: 242377
INF: How to Use Data
Transformation Services (DTS)
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section of this article.REFERENCES For more information about the QUOTED_IDENTIFIER option, visit the
following Microsoft Web sites:
Modification Type: | Minor | Last Reviewed: | 1/28/2004 |
---|
Keywords: | kbpending kbmerge kberrmsg kbReplication kbStoredProc kbBug KB832902 kbAudDeveloper |
---|
|