DBAtlas · Database operations atlas

208: Invalid object name

SQL Server

What does it mean?

The table, view or object referenced in the query was not found. SQL Server could not resolve the specified name.

Why does it happen?

A misspelled object name, wrong database/schema context (a schema other than dbo), the object really not existing or not created yet, or a missing two-part name (schema.table).

How to fix it

Spell the object name and schema correctly; use the qualified name (e.g. dbo.Customers). Make sure you are connected to the right database (USE). Check that the object exists: SELECT * FROM sys.objects WHERE name = 'YourObjectName'. Make sure temporary tables are created within the same session.

Open in DBAtlas →

More from this engine