Article ID: 264170 - View products that this article applies to.
This article was previously published under Q264170
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57981 (SQLBUG_70)
BUG #: 57812 (SQLBUG_70)
When an Immediate-updating Subscriber is connected to a subscribing database with a non-system administrator (SA) login, data modification transactions may fail and the following error message occurs:
The error message occurs even if the Subscriber user has sufficient permissions in the Subscribing database, such as:
Server: Msg 7415, Level 16, State 1, Line 3
Ad hoc access to OLE DB provider 'SQLOLEDB' has been denied. You must
access this provider through a linked server.
This behavior occurs when the Immediate Subscriber is configured to use the dynamic RPC security mode to connect to the Publisher.
You can check what security mode a subscriber is configured with by running the sp_helpsubscription_properties stored procedure in the subscribing database, and then check the publisher_security_mode column value.
A 0 value indicates you are using a dynamic RPC connection method to connect to the Publisher. A value of 2 indicates that you are using a static RPC connection method to the Publisher.
By choosing the static RPC publisher connection method (publisher_security_mode = 2) for the Immediate Subscriber, you can avoid the error message.
Change the publisher connection method for the Subscriber by running the sp_link_publication stored procedure in the Subscribing database.
Before you can change the connection method to static RPC, you must make sure that the Publisher is defined as a linked server on the Subscriber server. You can then use the sp_addlinkedserver stored procedure to add the Publisher as a linked server.
Following is an example that sets a static RPC connection method for an Immediate-updating Subscriber:
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799For more information, contact your primary support provider.
(http://support.microsoft.com/kb/274799/ )INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
Contact us for more help
Connect with Answer Desk for expert help.