Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Login privilege to access subscription DB tables got change once subscription been created.

$
0
0

we  have 2 servers namely (Server1) and (server2) with 2 logins (login1, login2) apart from sa account respectively in each server.

Server1 is the publisher.

Server2 is the subscriber.

Replication Type: Merge replication

subscription type: PUSH.

Issue:

In server1 and sever2 we have 50 tables in a database DB1.

Among 50tables login1 have privilege (Select, alter, delete, insert) to access 40 tables and

login2 have privilege (Select, alter, delete, insert) to access 30 tables.

Before replication setup login 1 and login 2 have access privileges to respective tables.

After replication setup

step1: Publisher setup - No issues till here

Step2: Subscription setup

used sp_addmergesubscription and sp_addmergepushsubscription_agent SP's

After completing the step2 the privileges in Server2(subscriber) forlogin1 and login2 got messed up they can access only few ( namely 5) tables which is not in article list.  and no issues with privileges inserver 1(publisher) for that same login.

login1 and login2 owns Public server roles not system admin.

can anybody say why the table access privileges only in Server2(subscriber) forlogin1 and login2 got changed.








Viewing all articles
Browse latest Browse all 4054

Trending Articles