Error 208

Severity Level 16
Message Text

Invalid object name '%.*ls'.

Explanation

This error occurs when an object that does not exist is referenced. If the object exists, you might need to include the owner’s name in the object name.

If the object is not owned by the user attempting to access it, and it is not owned by the database owner, all references to the object must include the owner’s name. For example, if user1 creates a table called test, other users must use the name user1.test when they refer to the table.

The Microsoft® SQL Server™ naming convention for database objects is:

[[[server_name.][database_name].][owner_name].]object_name

The default value for server_name is the current server and the default value for database_name is the current database. The default value for owner_name is the current user. Because owner_name is part of the object name, it is possible for two different users to have tables with the same name in the same database (for example, user1.test and user2.test). For additional information about naming conventions, see Transact-SQL Syntax Conventions.

This message can also occur when you reference a temporary table that was created with an EXECUTE statement.

Action

The procedure for handling this error depends on what you know about the object indicated in the error message text.

The appropriate permissions must also be set to allow access to an object. If these permissions are not set, error 229 or 230 occurs.

If you do not know who owns the object

Or

For example, to determine the owner and type for the object named table_1, execute the following:

USE master

GO

SELECT TABLE_SCHEMA

FROM INFORMATION_SCHEMA.TABLES

WHERE TABLE_NAME = 'table_1'

GO

  

If no rows are returned from this query, the object either resides in a different database or does not exist.

If you do not own the object in question

Or

If the object does not reside in the database

Or

If a temporary table created with an EXECUTE statement is referenced
See Also
CREATE TABLE SELECT
Creating and Modifying a Table sp_help
Errors 1 - 999 sysobjects
EXECUTE Transact-SQL Syntax Conventions
Information Schema Views USE
Querying SQL Server System Catalogs  

 

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.