I have 2 SQL Servers, let's call them A and B. I have a ColdFusion app that runs on server A. It connects to my database, MyDb
. I needed to update the db content so I backed up the same db on server B and restored it in server A (I backed up the server A's MyDb
first before doing the restore) I have verified that the connection in the CF Datasources is still OK. When I ran my CF app in server A, I got the Invalid object "tablename"
error. The database user has a user mapping of db owner in the said database.
Curious, I restored server A's MyDb
backup to server B's MyDB
and I was able to connect. No error was encountered.
Any idea on this?
Database\Security
in SSMS and removing, then adding back the same "user name" – 孔夫子 Apr 5 at 9:14CREATE LOGIN
statement. Either reassociate the user to the login, or recreate the login with the same SID as on the old server. – Jon Seigel Apr 5 at 15:40