This query returns columns with blank Logins.Select u.name As [Name] ,u.principal_id As [ID] ,isnull(suser_sname(u.sid) ,N'') As [Login] From sys.database_principals As uWhere u.type In ('U' ,'S' ,'G' ,'C' ,'K');
I do not have access to the original server where the SIDS for these users are. How can I fix this? I cannot drop user or schema for users with blank logins because they own the tables, and I cannot use the command EXEC sp_change_users_login 'Auto_Fix','<user>'
orEXEC sp_change_users_login 'Auto_Fix','<user>',NULL,'<pwd>'
or EXEC sp_change_users_login 'update_one', <user>, <user>
as none of them fix the issue. quote:
The number of orphaned users fixed by updating users was 0.The number of orphaned users fixed by adding new logins and then updating users was 0.