Microsoft KB Archive/928320
Article ID: 928320
Article Last Modified on 11/20/2007
- Microsoft SQL Server 2005 Standard Edition
- Microsoft SQL Server 2005 Developer Edition
- Microsoft SQL Server 2005 Enterprise Edition
- Microsoft SQL Server 2005 Standard X64 Edition
- Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems
- Microsoft SQL Server 2005 Enterprise X64 Edition
- Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
Consider the following scenario. You create a publication and configure a push subscription to a heterogeneous subscriber in Microsoft SQL Server 2005. For example, you configure a push subscription to an IBM DB2 heterogeneous subscriber. In the publication, you set the Action if name is in use article property to Keep existing object unchanged in SQL Server Management Studio. You synchronize the subscriber. In this scenario, you cannot use the existing tables on the heterogeneous subscriber database. The tables are always dropped and re-created.
To resolve this behavior, follow these steps:
- Use the New Publication Wizard to create a transactional publication without creating a snapshot.
To do this, follow these steps:
- Open SQL Server Management Studio, and then connect to the instance of SQL Server 2005.
- In Object Explorer, expand Replication, right-click Local Publications, and then click New Publication to start the New Publication Wizard.
- Follow the New Publication Wizard to the Publication Type page.
- On the Publication Type page, select Transactional publication under Publication type, and then click Next.
- Follow the New Publication Wizard to the Snapshot Agent page.
- On the Snapshot Agent page, do not select Create a snapshot immediately and keep the snapshot available to initialize subscriptions. Click Next toward the end of the New Publication Wizard.
- Enable the transactional publication for non-SQL Server subscribers.
To do this, follow these steps:
- In Object Explorer, expand Local Publications, right-click the transactional publication that you just created, and then click Properties.
- In the Publication Properties dialog box, click Subscription Options in the Select a page pane.
- In the right pane, expand Creation and Synchronization, set the value of the Allow non-SQL Server Subscribers option to True.
- Click OK to close the Publication Properties dialog box.
- Use the New Subscription Wizard to create a heterogeneous subscriber.
- In SQL Server Management Studio, create a new query window, and then run the following command:
sp_changearticle @publication= '
MyPublication', @article= '
MyArticle', @property='pre_creation_cmd', @value='none'
MyPublicationis the name of the transactional publication that you just created.
MyArticleis the name of the article for which the property must be changed.
- You must run this command for each article that is in the transactional publication.
- Create a snapshot for the transactional publication.
For more information about how to create a snapshot, visit the following Microsoft Developer Network (MSDN) Web site:
- Synchronize the heterogeneous subscriber.
This behavior is by design.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.
Keywords: kbtshoot kbprb kbexpertiseadvanced kbsql2005repl KB928320