Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 OPENROWSET function

Author  Topic 

js.reddy
Yak Posting Veteran

80 Posts

Posted - 2007-11-28 : 02:13:46
Hi All!

I used the the following statement to read excel sheet.
But I am getting the error


SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\tasks\duplicates.xls;IMEX=1',
'SELECT * FROM [Sheet1$]')

----------------------------------
Server: 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.
Server: 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)".

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-11-28 : 03:25:47
Wrong forum.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-11-28 : 03:37:36
You can find informations for the error here
http://sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -