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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How to script database permissions?

Author  Topic 

DBADave
Constraint Violating Yak Guru

366 Posts

Posted - 2008-01-03 : 12:49:15
How do you script database role permissions in Management Studio? No matter what options I select I do not see permissions assigned to a role.

Thanks, Dave

mcrowley
Aged Yak Warrior

771 Posts

Posted - 2008-01-03 : 13:37:27
object level permissions would be the closest to what you need. You would still have to take the resulting script and strip out all of the other roles/users, though.
Go to Top of Page

DBADave
Constraint Violating Yak Guru

366 Posts

Posted - 2008-01-03 : 14:18:34
Object level permissions do not script database role permissions, only the permissions associated with objects. I tried that already to see if it is different in 2005.

In 2000 the script would generate sp_addrolemember statements.

Dave
Go to Top of Page
   

- Advertisement -