Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

linked server Problems

$
0
0
I am trying to import some data from Excel to SQL, found many resources on that locally and on internet. The Openrowset way worked fine, i use :
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\test.xls', [morning$])
(Here test.xls has 3 sheets: morning, afternoon and evening.
And it returns the data in the table, however when i tried to create a linked server to that excel file, i think i got stuck : the linked server is created fine, but nothing inside, i am using SQL management studio, i should get a hierarchy under the linked server node but nothing i got none.
these are the parameters i choosed in the creation wizard :
Linked server : excelserver
Server type : other type
provider : microsoft jet 4.0 oledb provider
Provider name : excel
Data source : d:\test.xls
Provider string : excel 8.0


I think all should be okay since there are the same parameters as used in the above, but it is not the case, this is my first time working in all this, so i might screwed up everything Wink



Thanks in advance

Viewing all articles
Browse latest Browse all 8428

Trending Articles