Solved

sql replication removing permissions on database

Posted on 2014-01-31
2
344 Views
Last Modified: 2014-01-31
We are using transactional replication to replicate 3 tables from a sql 2008 database to a sql2012 database. Replication is is removing permissions from the sql2012 database.

I thought it was the snap shot at initiation that was causing it but the log shows the snapshot was delivered at 6:00 PM and the permissions were altered some time after 10:00 PM.

Any ideas on what is happening and how to stop it?
0
Comment
Question by:jimmylew52
2 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 39824203
In my opinion that subscription was initialized therefor the permissions were lost. Please see notes about permissions in replicated databases and as you can see the "Replication" itself (other than subscription initialization) won't drop your granted permissions on destination (subscriber) database.

http://technet.microsoft.com/en-us/library/ms151740.aspx


What happens to permissions granted in a subscription database if a subscription is reinitialized?

"
By default, objects at the Subscriber are dropped and recreated when a subscription is reinitialized, which causes all granted permissions for those objects to be dropped. There are two ways to handle this:
"
0
 
LVL 1

Author Closing Comment

by:jimmylew52
ID: 39825529
Thank You
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question