|
Ask a question
I backed up a database under SQL Server, and then restored the database to the same version on another machine. The user is user1. When using SQL statements, the following error always appears:
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'XXX'
That is, select * from XXX will always be wrong, and replaced with
select * from user1.XXX is fine.
I found some information from the Internet. It may be a problem with the orphan account. I use
EXEC sp_change_users_login 'Report'
EXEC SP_CHANGE_USERS_LOGIN UPDATE_ONE, 'user1', 'user1' resolved the orphan account, but still reported the same error.
How do you recover on another SQL Server machine? |
|