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

sql server replication

group:

Table access privileges


Table access privileges Jay
8/20/2007 9:25:19 AM
sql server replication:
I'm not super familiar with all of the forms of SQL Server replication, so
this is more of a request to get the questions I need, rather than the
answers.

I received the following email this morning:

It looks that we had restarted the replication recently that seemed
to have reset some
of the table access privileges. I have reset those so that you can
have access to all
of the tables in EDI database. Sorry for the trouble.

When I asked what type of replication it is, I got both: "transactional" and
Publisher/Subscriber (definitely not Log Shipping, the only one I know).
I also know that the source (publisher?) system had recently had new tables
added and that the final destination system had permission reset on more
tables than just the new ones.
SQL Server 2000 on all machines.
The architecture is:
Source1 (active/passive cluster) --\
Source2 ---> ProRep (some kind of staging
server) -> CorpRep (where the data is used)
Source3 --/

What information do I need to get before I can even begin this process?

Thanks,
Jay

Re: Table access privileges Jay
8/20/2007 10:42:03 AM
Thank you. Three questions:

1) Where do I find the entry point for the "post snapshot script"?
2) Is there a reasonable way to grant security at a higher level that
wouldn't require re-applying them?
3) Why does it only happen when new tables are added and not every time the
database is replicated?


[quoted text, click to view]

Re: Table access privileges Hilary Cotter
8/20/2007 1:19:53 PM
What probably happened was that you have object level security on the
replicated tables, i.e. through grant statements. When the tables are
dropped when the snapshot is applied these grant statements are wiped out.
You would need to re-apply them as part of a post snapshot script.

--
relevantNoise - dedicated to mining blogs for business intelligence.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

Re: Table access privileges Hilary Cotter
8/20/2007 11:04:50 PM
1) right click on your publication and select properties, then select the
snapshot tab, in the additional scripts section enter the post snapshot
script in the After applying the snapshot, execute this script dialog box.

2) roles will probably work.

3) because when new tables are added the existing ones with the same name on
the subscriber are dropped. When they are dropped the permissions applied to
them are lost.

--
relevantNoise - dedicated to mining blogs for business intelligence.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

AddThis Social Bookmark Button