Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Copy persmission from one db to another?

Author  Topic 

Pasi
Posting Yak Master

166 Posts

Posted - 2014-03-25 : 19:47:51
Hi,

is there a way to copy permissions from one db to another db? any scripts? Like in my case I like to copy groups permission from dev db to prod db?
Thanks

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2014-03-26 : 17:50:16
You can script out the roles, users, grants, etc. It's a bit too complicated to cover in detail here. You can also use a tool like RedGate SQL Compare (there are others) to copy these items from here to there.

===============================================================================
“Everyone wants a better life: very few of us want to be better people.”
-Alain de Botton
Go to Top of Page

Pasi
Posting Yak Master

166 Posts

Posted - 2014-03-26 : 19:33:41
Yah that's what I thought!Thnx
Go to Top of Page
   

- Advertisement -