I am in enterprise manager. I have to databases under the same server and I want to copy all the users from one database to the other. Is there an easy way to do that?
This works in SQL 2000. I believe it works in SQL 7 but cannot test it at the moment.
In Enterprise Manager, right-click the database that contains the users. Select All Tasks | Generate SQL Script. Click on the Options tab and check Script database users and database roles. Either generate a script file or click Preview on the General tab.
Open Query Analyzer. Change the QA context to the 2nd database. If you generated a script file, open it from QA. If you generated a preview in EM, copy the script to the clipboard and paste into the query window of QA. Run the script to add the users in the 2nd database. Terry L. Broadbent Programming and Computing Resources
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.