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
 General SQL Server Forums
 New to SQL Server Programming
 Excel Import/Export Problem

Author  Topic 

kcanakli
Starting Member

8 Posts

Posted - 2011-12-29 : 04:13:36
Hi,
I ve MS SQL 2005 Std 64 bit and win 2008 64 bit server, I use
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=d:\test.xls',
'SELECT * FROM [Sheet1$]')


Msg 7308, Level 16, State 1, Line 1
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode.

I m crazy now help pls

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-12-29 : 05:16:10
[code]
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
GO
RECONFIGURE;
GO
[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2012-01-03 : 05:54:36
In 64 bit OS, you need jet 12.0 installed

Madhivanan

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

- Advertisement -