sql to find user definitions
I am new to sqlserver (came from Oracle). When I copy database in sqlserver from production to test I end up with orphin users. How can I create sql to rebuild users in test from production? I quess I need a script to drop and then receate the users in the database that I just restored from production.
thanks
Charles

