How To Re-Associate An Orphaned SQL User With A SQL Login

Read Time:25 Sec

I ran across an issue the other day when making a mirror of the Production environment. The problem was that after doing a database backup on one SQL Server and then restoring that backup to another SQL Server there were SQL Users that were in the database but not on the SQL Server instance.

Luckily, I found a post on Sean Decker – SQL Fundamentals, that explains exactly how to fix it with a simple SQL statement:

EXEC sp_change_users_login 'UPDATE_ONE', 'sqlusername', 'sqlloginname'

Author

Stewart Schatz

Career: Principal CNC Consultant for Syntax Systems Limited specializing Oracle JD Edwards EnterpriseOne and the technology that supports it. Side Hustle: Owner/Operator of E1Tips.com Location: Lancaster, PA USA  What I like to do: Invest in Family, Explore Technology, Lead Teams, Share Knowledge/Experience, Hunt, Hike, etc.
Happy
Happy
0
Sad
Sad
0
Excited
Excited
0
Sleepy
Sleepy
0
Angry
Angry
0
Surprise
Surprise
0

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Previous post Oracle JDEdwards EnterpriseOne Table Trivia
Next post Where Did The UBE Logs Go On EnterpriseOne Tools Release 9.1?