Solved

Excel Table Import into SQL Server 2008

Posted on 2014-07-27
5
760 Views
Last Modified: 2014-07-28
I created a new database called Temp, I used Task/Import to import a table from excel. The table is there and I can query the table and see it's contents. When I try to do a join on the table I get the error below.

Msg 7202, Level 11, State 2, Line 1
Could not find server 'Temp' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
0
Comment
Question by:imnee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:Ess Kay
ID: 40223039
save it as a comma delimited  file,  and create an sql to read through the file and insert them
0
 
LVL 15

Expert Comment

by:Ess Kay
ID: 40223044
0
 
LVL 13

Accepted Solution

by:
Russell Fox earned 500 total points
ID: 40223301
The problem isn't with the server, it with the query - can you post some or all of the query so we can troubleshoot it? It sounds like you're using an incorrect name: server.database.schema.object. My guess is that the join should be "JOIN dbo.Temp ON..."
0
 

Author Closing Comment

by:imnee
ID: 40223974
Correct. I have the column name CompanyPartMasterId as part of the reference to my table.

INNER JOIN Company.dbo.Plating.CompanyPartMasterId spm1 on spm1.CompanyPartMasterId = spm.Company_Part_Master_ID
0
 
LVL 13

Expert Comment

by:Russell Fox
ID: 40224526
So you took out the column in the join?
INNER JOIN Company.dbo.Plating spm1
    ON spm1.CompanyPartMasterId = spm.Company_Part_Master_ID
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question