Microsoft
Software
Hardware
Network
Question : SQL: Invalid object name 'tablename'
Hi,
I've created a few tables in SQL using SQL Server Mgmt Studio (SQL SMS) titled: "Games1" and "Scores". I am trying to run sql statements in the query window on the tables. I am getting the following error message in the "Results" panel
ERROR Message:
Msg 208, Level 15, State 1, Line 1
Invalid object name 'Scores'
I get the same error when I query the "Games1" table.
Could someone tell me why I am getting this error? I've run several queries on these tables previously without a problem. Each table is listed in the object explorer panel in SQL SMS, so they are accessible correct? I am connected to the databases (local, my box).
Below is my code:
Code Snippet:
1: 2:
Select * From Scores
Open in New Window
Select All
Answer : SQL: Invalid object name 'tablename'
perhaps they are created in a different schema.
select * from information_schema.tables
where table_name = 'scores'
Random Solutions
How does DBCC test the integrity of a database?
Long SQL String is Wrapping and Not Running in Access VBA
How to delete a row based on the value of a cell? (macro)
Exchange 2007 Autodiscover & OAB & OOF not working anymore
System.OutOfMemoryExceptio<wbr />n when filling dataset with 655,000 rows - need workaround!!
How to disable the Open File - Security Warning on Windows 7
Options with Importing Pictures and Videos not functioning
somethine or a user is running sql profiler on my sql server 2008 instance - how can i identify the session
SQL Server 2005 Windows 7 64bit
Free Proxy Servers or Services