all groups > sql server replication > may 2007 >
You're in the

sql server replication

group:

Rights problem after replication


Rights problem after replication pem
5/31/2007 1:02:37 AM
sql server replication:
Hello,
I've got a snapshot replication problem. My master database has some
tables which are replicated on 2 read-only databases. In every
database, I have the same roles, but not the same users. When I
replicate the database, every rights on my replicated tables are
erased ! What's the problem ?

Thanks for your help !!
RE: Rights problem after replication Paul Ibison
5/31/2007 2:23:02 AM
Are you using SQL Server 2000? In this case you'll need a pre-snapshot script
to create the user if he owns any tables. If not the user and the permissions
can be in a post-snapshot script. For SQL 2005 there is a new option on
sp_addarticle (0x40000000) to add the permissions.
HTH,
Paul Ibison

Re: Rights problem after replication pem
5/31/2007 3:43:12 AM
[quoted text, click to view]

Hello and thank you for your quick answer !
Yes, I'm using SQL Server 2000. How can I create this pre-snapshot ?
I've already a sql file that contain the grant's list.

TIA, pem
Re: Rights problem after replication Paul Ibison
5/31/2007 7:41:02 AM
On the snapshot tab in the publication properties there is an option to
browse for a TSQL file.
Cheers,
AddThis Social Bookmark Button