Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invalid object name

Status
Not open for further replies.

BFT1303

Programmer
Jan 26, 2007
29
US
I keep getting the following error when attempting to read a specific table in my database. The spelling of the table is correct and I have confirmed that it does exist in the database. Any suggestions?

S0002: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name <mytable name>. (-1)
 
Tables that have the same name as a reserved word, or contain spaces, should be wrapped in square brackets.

Ex:

[tt]
Select *
From [!][[/!]Table Name[!]][/!]
Where ....
[/tt]

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top