Problem with update sql with excel
Posted
by phenevo
on Stack Overflow
See other posts from Stack Overflow
or by phenevo
Published on 2010-05-11T13:11:23Z
Indexed on
2010/05/11
13:14 UTC
Read the original article
Hit count: 271
sql-server-2005
|excel
Hi, I have a problem with this query:
Update Provinces Set Provinces.DefaultName=T2.Defaultname from Provinces inner join
OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\provinces.xlsx;HDR=YES',
'SELECT Code, Defaultname FROM [Arkusz1$]') T2 On Provinces.Code = t2.Code where Provinces.Code = T2.Code
I get error:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
What is a reason of this unpleasent situation ?
© Stack Overflow or respective owner