Avatar of fieldb1
fieldb1
Flag for United States of America asked on

Can't query table imported from Excel in SQL Server 2008

I have imported a number of tables from Excel into SQL Server 2008. The tables are there, I have verified the data, I can access the data from  a VB Grid Control. However, when I query one of the tables with a SELECT statement I get an error. Even a SELECT * FROM tableName throws the error. Any suggestions?
Microsoft DevelopmentMicrosoft SQL Server 2008

Avatar of undefined
Last Comment
fieldb1

8/22/2022 - Mon
Anthony Perkins

Not without more of an explanation.  Such as what is the error message?  Have you tried querying the table in SSMS?  Are you sure you imported the table into the right database?  What code are you using?  And what is the phase of the moon?
fieldb1

ASKER
Error message:
Msg 208, Level 16, State 1, Line 1
Invalid object name 'FEB11'.

I am using SSMS to query the table.

It is in the correct database.

The error above was thrown after a simple SELECT * FROM FEB11

FEB11 is the table name.

I can view the records by right-clicking the table , then selecting 'Select top 1000 Rows'. I don't know why a query won't work.
ASKER CERTIFIED SOLUTION
G Trurab Khan

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
fieldb1

ASKER
Brackets did it. Thanks.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck