I have an orphaned user, but when I view the user properties in SSMS the General tab shows a Login name, that does not match the User name.
See below:
This SQL Login name does not exist in the SQL Login in sys.server_principals as the SQL Login was dropped from the SQL Instance.
I have tried to find the t-sql that will list out the above Login name. Can someone point me to which system view contains the Login name?