all groups > sql server odbc > july 2004 >
You're in the

sql server odbc

group:

Invalid Object Name


Invalid Object Name Sidney Mark Croy
7/16/2004 3:31:08 PM
sql server odbc:
Greetings

I have recently migrated several databases from SQL 7 to SQL 2000. When
accessing one table in one database with a simple SQL statement (SELECT *
FROM tablename) I am receiving error -2147217865-Invalid object name
'tablename'.

Is this related to the migration to SQL 2000 from SQL 7? I have recreated
the table, but still receiving the same error.

Thank you for any insight and help you can provide.

Sidney Mark Croy

Re: Invalid Object Name Michael C
7/17/2004 11:35:55 PM
Two questions -

1) Does 'tablename' actually exist in the database?
2) Assuming you're using Query Analyzer, are you in the right database
(check the drop-down list up top)?
3) Is 'tablename' a standard ANSI name? If not, try putting brackets [ ]
around it
4) Is the database marked suspect, offline, or any of that good stuff?
5) Are you using the same collation on your SQL 2K server as on SQL 7?

Thanks,
Michael C.

[quoted text, click to view]

Re: Invalid Object Name Sidney Mark Croy
7/19/2004 9:05:21 AM
Greetings

The tablename actually exists, and the query is pointing to the correct
database. The database is not marked suspect, offline, etc.


[quoted text, click to view]

AddThis Social Bookmark Button