Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy roles with their permissions from one db to another

Status
Not open for further replies.

shanghai2004

Programmer
Dec 16, 2004
37
CA
Dear Expert,

Followed the instructions below I copied the user and roles from one database to another. But the permissions of the roles were not be copied over. Is there a way to copy the permissions of the roles over?

Thanks


=====================
In Enterprise Manager

Right Click on your Database
Select "All Tasks"->"Generate SQL Script"
Select "Options"
Check "Script Database Users And Database Roles"
UnCheck everyting else
Select OK or.. Go back to the "General" tab and select "Preview"
 
Do the same thing, but also check the object permissions box. That might do the trick.

Getting permissions scripted can be tricky.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
MS provide a script way. check out
thread183-1208174
 
speaking with little experience here but doesn't DTS give you the options to do this?

I'll refer back to my references but I thought it did


General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top