As part of a go-live senario on SQL 2005, I'm trying to find a easy way to copy the userlogin from one database (systemstest DB) to another (Go-live DB).
I have a systemstest-database and a future Go-live database on the same SQL2005 server. As part of test 70 users have been created with acces to the testdatabase. These 70 userlogin's I now need to give the same access to the Go-live database.
It would have to be a nested SQL query listing the userID's from the testDB and the granting the same permissions to the Go-liveDB.
I just don't know how to put this into SQL-statments.
Are there any one here that can help me out :?:
>>None but a fool worries about things they cannot influence...<< - Samuel Johnson
0
Comments
well, once I had a similar issue, and I solved it with this script: This generates a script to create logins/users on basis of the NAV table "User"; you could do it similar with a list e.g. from "syslogins" etc..
But you could also transfer logins e.g. from one SQL instance to another using the feature provided here: http://support.microsoft.com/kb/246133
Hope this helps you.
Regards,
Jörg
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
Copy and paste it into the other box and run it.
You only need to do this for SQL db users. For windows. After you restore the backup. WHen you synchronize Nav the windows users will be added to SQL automatically.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n