I was having that problem when I was connected to two separate servers. I had to disconnect specifically from each one, restart SSMS, and then it worked. I guess make sure you are only connected to 1 server.
"Invalid object name" error.
I have a table that exists in the database. When I run "Select * from tablename" , it executes successfully .But when I am running "Insert into tablename values()", it is giving me the below error:
"Invalid object name tablename"
The table exists in the database, but getting "Invalid object name" error.
For Select query, it executes successfully. But for Insert query it is giving "Invalid object name" error.
Please help on resolving this issue.
SQL Server | Other
7 answers
Sort by: Most helpful
-
-
Dayneko 1 Reputation point
2022-04-15T06:59:41.477+00:00 I also encountered this problem, and as it turned out, after updating the DEV stand. The table is gone, but I have it displayed. It was necessary to restart the DBMS