SQL Server Error 208 — Invalid object name

Invalid object name 'dbo.TableName'.

SQL Server parsed your query fine, but the table, view, or synonym you referenced doesn't exist — at least not where it's looking.

Common causes

How to fix it

  1. Confirm which database you're actually connected to: SELECT DB_NAME().
  2. Search for the object across schemas: SELECT * FROM sys.tables WHERE name = 'TableName' (also check sys.views and sys.synonyms).
  3. If it's a schema issue, fully qualify the reference (schema.table) instead of relying on default schema resolution.
  4. If it's a missing migration, confirm your deployment/migration pipeline actually ran against this environment.

Paste your query and error here for a targeted fix.

Try error explainer free →

Related