MS Jet OLEDB 4.0 cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode

Who is online?  145 guests and 0 members
home  »  forums   »  microsoft data platform   »  sql server & bi   » MS Jet OLEDB 4.0 cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode

MS Jet OLEDB 4.0 cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode

Topic RSS Feed

Posts under the topic: MS Jet OLEDB 4.0 cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode

Posted: 4/14/2011 6:17:09 AM

Lurker 8  points  Lurker
  • Joined on: 3/15/2011 5:23:39 AM
  • Posts: 4

Hi All,

I am getting this error while running a cursor on a 64 bit SQL Server R2 on Windows Server 2008 64 Bit Server ." MS Jet OLEDB 4.0 cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode" This Server is sitting on a VM . Basically I am trying to get a csv to be imported into the db and then publish it through SSAS Cube or Power Pivot . The csv data is in a non-uniform manner so I am unable to get it imported through import/ export, Bulk import or thru SSIS package. So I am using the cursor to import data, then use ssis package for transformations and power pivot for publishing . The cursor works fine on a 32 bit machine but throws this error on a 64 bit machine . Following are the workarounds I have tried but these have been in vain.

1) Enable ad hoc querries

2) Execute using SQL job and explicitly running it in 32 bit mode bu checking the check box

3) Running SSIS package in 32 bit mode

4) Downloading and installing the latest access ole db driver from microsoft site .

Even when I try to use openrowset it is throwing same error. At persent I am using the ftp connection to get files in an existing SQL 2000 sql db and then moving those table to SQL 2008 server and publish it from there which is more of a lengthy process but works fine .

Any workaround to get this working on a 64 bit SQL server .......

 

Thanks


Posted: 4/14/2011 8:04:06 AM

Lurker 41  points  Lurker
  • Joined on: 3/28/2011 4:48:19 AM
  • Posts: 8
answered  Answered

hello Diwakar,

I remember you personally asked me this issue and i suggested you a few of the workarounds which you have already tried out.

There are a lot of links on web which talks about Workarounds for this problem but no real solution.

The problem is a peculiar one because 64-bit drives for JET are not available. While browsing some of the links i got through this one.

http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/33436d82-085c-43e4-b991-a2d0d701c8fc

Check out this link and try downloading the latest drivers .but for this you will no longer use Jet rather you will use ACE.

and also check out the important point mentioned there.

I will try to look out for some more info on this in the meantime.

Hope it might help you .

Regards,

Sachin Sharma


Posted: 4/15/2011 2:59:17 PM

Contributor 1606  points  Contributor
  • Joined on: 3/12/2011 4:59:54 PM
  • Posts: 113

Thanks Sachin, Great to see you answering questions !


Posted: 4/15/2011 3:46:38 PM

Lurker 8  points  Lurker
  • Joined on: 3/15/2011 5:23:39 AM
  • Posts: 4

Thanks a lot Sachin U always turn out to help ,,,,appreciate of helping me in any situation. We altogether can make this forum a good learning experience.


Page 1 of 1 (4 items)