Excel linked server!

Puiu

Well-known member
Joined
Oct 6, 2004
Messages
90
Im trying to make a linked server from an Excel file, but i get an error when I try to select from it:

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "stanley" returned message "Unrecognized database format F:\Analiza.xls.".

I use SQLEXPRESS 2005.
It worked fine when i tryed to link to an access mdb file...
Any ideea why the database format is not recognized ?
 
Try something like
Code:
 "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\Analiza.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
 
I had forgotten to put the provider string: Excel 8.0! Didnt realize that, sorry!
Now it works perfectly
Thank you
 
Back
Top