PRB: You Cannot Create a Replication Publication If an Article Name Contains a Special Character (829746)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
SYMPTOMSWhen you try to create a new replication publication that
includes a table or a stored procedure whose name contains a special
character, the publication creation may not be successful, or the publication may be
created without the article that contains the special character. For example, the following special characters may cause this problem: If you use
SQL Server Enterprise Manager to create the publication, you may receive
the following error message: SQL Server Enterprise
Manager could not create article '<Article Name>' based on object
'<Object Name>'.
Do you want to continue saving other changes to
the publication?
Error 15006: '<Object Name>' is not a valid
name because it contains invalid characters. Note If you click Yes in the message box, the publication is created. However, the article for the object whose name contains the special character is not available in the list of articles in the publication. If
you use the sp_addarticle system stored procedure to add an article whose name contains
a special character, the article may not be added, and you may receive the following error message: Server: Msg 15006, Level 16, State 1,
Procedure sp_MSreplcheck_name, Line 49 '<objectName>' is not a valid name
because it contains invalid characters. CAUSEThis problem occurs because Microsoft SQL Server 2000 does not permit the special characters that are
mentioned in the "Symptoms" section of this article to be included in the article name of a replication
publication.WORKAROUND To work around this problem, remove the special characters
from the default article name that is provided by SQL Server 2000. To do so, use one of the following methods: Method 1If you use the Create Publication Wizard in SQL Server Enterprise Manager, follow these steps:
- Open SQL Server Enterprise Manager.
- Expand SQL Server Group, and then
click your instance of SQL Server.
- On the Tools menu, point to
Replication, and then click Create and Manage
Publications.
- In the Create and Manage Publications on
<Instance of SQL Server> dialog box, click Create
Publication.
- Click Next.
- In the Choose Publication Database
dialog box, click your test database in the Databases list.
- In the Select Publication Type dialog
box, accept the default option, and then click
Next.
- In the Specify Subscriber Types dialog
box, click Next.
- In the Specify Articles dialog box, click the object type, Tables
or Stored Procedures, or both, in the Object Type list.
- In the Objects List box, click the object that you want to
include in the publication.
- Click the ellipsis button next
to the selected object.
- In the Table/Stored Procedure Article
Properties - <Article Name> dialog box, click the
General tab.
- In the Name text box, remove the
special characters from the article name.
- Click OK.
- In the Specify Articles dialog box,
click Next.
- Follow the instructions in the Create
Publication Wizard to finish creating the new
publication.
Method 2 If you use the sp_addarticle system stored procedure to add an article to an existing
publication, provide an article name
that does not contains a special character. You can do so by using the @article parameter of the sp_addarticle system stored procedure. REFERENCESFor additional information about the sp_addarticle system stored procedure, visit the following Microsoft Web
site:
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbReplication kberrmsg kbprb KB829746 kbAudDeveloper |
---|
|