What I am trying to do is to get 2 versions of a database to act the same
down to the permission level. So, I need to replicate all users, all user
roles, and all user permissions.
I have been searching all over the place for scripts to do this and I have
not come up with any that work with 2005.
In 2000 it looks like the syspermissions table handles the object level
permissions. In 2005 it is the sys.database_permissions view.
Thanks for your help.
[quoted text, click to view] "Hilary Cotter" <hilary.cotter@gmail.com> wrote in message
news:uPshfNEnGHA.4684@TK2MSFTNGP02.phx.gbl...
> You are correct Paul. I normally do this as a post snapshot command as
most
> objects I work with are owned by dbo, and I need to set permissions.
>
> I guess it depends on what the op means by Users and User Mapping
settings.
> --
> Hilary Cotter
> Director of Text Mining and Database Strategy
> RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
>
> This posting is my own and doesn't necessarily represent RelevantNoise's
> positions, strategies or opinions.
>
> 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 >
>
>
> "Paul Ibison" <Paul.Ibison@Pygmalion.Com> wrote in message
> news:ueHnEj3mGHA.1760@TK2MSFTNGP03.phx.gbl...
> > Hi Hilary - I would run it as a pre-snapshot script (rather than
> > post-snapshot) if the user owns any objects and this ownership is being
> > retained.
> > Cheers,
> > Paul Ibison
> >
>
>