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)
 Data import from excel

Author  Topic 

ruchirj07
Starting Member

37 Posts

Posted - 2007-10-16 : 08:57:39
i have executed the code :
execute sp_addlinkedserver 'ExcelSW','Jet Excel', 'Microsoft.Jet.OLEDB.4.0','C:\Test.xls',Null,'Excel 8.0',null

and had seen that it is getting reflected in sysservers.
Now when i'm executing the statement :

SELECT Title,steps
FROM OPENROWSET('Microsoft.Jet.OLEDB 4.0'
,'Excel 8.0;Database=C:\test.xls'
,'SELECT Title,steps FROM [SheetName$]')

i'm receiving an error saying "The OLE DB provider "Microsoft.Jet.OLEDB 4.0" has not been registered".

I'm having 64bit SSMS.

Can anyone please let me know where i'm wrong?

Ruchir

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-16 : 09:32:43
Install 64-bit JET Provider.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -