|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:48 AM
Points: 31,
Visits: 140
|
|
After setting up Replication (Transactional Publication with updatable Subscription) between two instances one instance being both Distributor and Publisher, with the other being a Subscriber running on my local machine. I managed to replicate data between instances from the publisher Instance, however whenever I try to update the table that is being replicated at the subscriber which should then instantly update the publisher I get the errors below.
ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) --- Server 'repl_distributor' is not configured for DATA ACCESS. (Microsoft SQL Server, Error: 7411)
The RPC security information for the Publisher is missing or invalid Use sp_link_publication to specify it Publisher server is not configured for RPC The publisher is set up for RPC and the distributor was configured for data access. Not sure how to replicate updates from subscriber back to publisher.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 2:31 AM
Points: 412,
Visits: 1,671
|
|
kingdonshel (9/21/2012) After setting up Replication (Transactional Publication with updatable Subscription) between two instances one instance being both Distributor and Publisher, with the other being a Subscriber running on my local machine. I managed to replicate data between instances from the publisher Instance, however whenever I try to update the table that is being replicated at the subscriber which should then instantly update the publisher I get the errors below.
ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) --- Server 'repl_distributor' is not configured for DATA ACCESS. (Microsoft SQL Server, Error: 7411)
The RPC security information for the Publisher is missing or invalid Use sp_link_publication to specify it Publisher server is not configured for RPC The publisher is set up for RPC and the distributor was configured for data access. Not sure how to replicate updates from subscriber back to publisher.
I have never worked with this replication scenario, however the error message to me is somewhat familiar. When you create replication, a linked server is created on the publisher end for the subscriber.
Do 1 thing. Set up a demo replication in test environment. Go the the linked server. Right click on that and in properties enable RPC and Data access. Let me know if this works.
Thanks Chandan
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:48 AM
Points: 31,
Visits: 140
|
|
| I did have that before if you look at the bottom of my posting you can see where I said RPC is already set to True.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 2:31 AM
Points: 412,
Visits: 1,671
|
|
Sorry about that. Did you turn on the data access true as well?
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 2:31 AM
Points: 412,
Visits: 1,671
|
|
My gut feeling is that you can get this done by tweaking linked server only. I will try to re-produce this in my environment today.
Thanks Chandan
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:48 AM
Points: 31,
Visits: 140
|
|
Yes I have set data access to true as well , however I dont see why I should have to if the link server is created automatically for replication from what I can see DATA ACCESS should be set to true, anyway I did. When you try this in you environment remembr the type of Replication option I was trying was Transactional Publication with updatable Subscriptions. This allows changes to replication back to the publisher even when changes are made at the subscriber, it also allows changes to be replicated to the Subscirber even when updates is made at the Publisher.
I think part of the problem is the link server created on the distributer (repl_distributor) is run under the distributor_admin user --see Logins under Security. However the link server at the Subscriber is running under a different user.This happens automatically and there is no access to the password for these usernames. I tried to set up my own Subscriber link server and tried to set up local to remote server mappings based on my admin user account however the link server could not connect ,I got the RPC Error message.
Also remember I am not on a network I am using my local machine which is running 2 Instanced.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, September 30, 2012 9:59 AM
Points: 1,
Visits: 2
|
|
Hello,
Did you started MSDTC, if not please start and allow inbound and outbound. I think your problem should be resolved.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:48 AM
Points: 31,
Visits: 140
|
|
Thanks a million Raj, this works I droppped all link servers, users and logins created by replication, started MDTC in Services and recreated the type of replication described in my initial post. Now when I update the replicated table at the subcriber or publisher the updated table changes are updated in both places. Thank you so much. This is the first time any of these sites has ever given me a solution that works, and thanks to for the suggestions from other user they helped to improve my knowledge.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 11:48 AM
Points: 31,
Visits: 140
|
|
| Just to mention,I did not see any inbound or outbound option anywhere, I am using SQL Server 2008.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 2:31 AM
Points: 412,
Visits: 1,671
|
|
kingdonshel (9/30/2012) Just to mention,I did not see any inbound or outbound option anywhere, I am using SQL Server 2008.
I am glad that this worked for you. MSDTC options would be configured from windows level. Control panel has some option called 'add windows component' and there you can configure msdtc. Use web to find exact options to configure it for your OS.
Cheers! Chandan
|
|
|
|