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 users and roles from one database to another in a SQL server 1

Status
Not open for further replies.

shanghai2004

Programmer
Dec 16, 2004
37
CA
Dear Expert,

Is there a way to copy users and roles from one database to another (but not tables and views) in a SQL server?

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"


HTH


Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top