Check whether the login is matched.
USE databasename
GO
SELECT u.name AS "Name", ISNULL(l.name, 'dbo is unmatched') AS "Matched Login"
FROM sysusers u
LEFT JOIN master.dbo.syslogins l ON u.sid = l.sid
WHERE u.name = 'dbo'
GO
If unmatched change the database owner.
Then fix the sa dbo mapping.
To run a report to check username logins have matching userSID
No comments:
Post a Comment
Note: only a member of this blog may post a comment.