Author |
Topic |
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2011-11-21 : 11:49:03
|
Please I need help:I got the following error message on using ssis my sql server is 64 bitI already set adhocremotequeriesenabled to true and xpcmdshellenabled to true"SELECT * INTO dbo.Temp_Grades_1 FROM OPENROWSET('M..." failed with the following error: "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.Appreciate your helpsarah |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-21 : 12:50:32
|
try enabling ad-hoc distributed queries to onsp_configure 'Ad Hoc Distributed Queries', 1;GORECONFIGURE;GO if it still doesnt work, try running package in 32 bit mode by setting Run64BitRuntime property to false in Project->Properties->Debugging tabthis should solve it ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2011-11-21 : 13:49:23
|
I did all what you mentioned but I still got the same error message.Thanks for your helpsarah |
|
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2011-11-21 : 16:00:44
|
Please Please I need help.YOUR Previous step by step worked on my computer at home but at work NO I Have sql 64 bit andOn adding a sql taskSELECT * INTO temp_grades_959 FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=D:\importallgrades\Grades\grades_1.xls', [Sheet1$])I get the following error message[Execute SQL Task] Error: Executing the query "SELECT * INTO temp_grades_959 FROM OPENROWSET('Mic..." failed with the following error: "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.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.My server is sql 64 bit but the office potion is 32 we do not have office installed on the serverI tried changing the package to run 32 bit by seting run64runtime to falseI tried configuring adhocremotequiredenabled =true xpcomdshellenabled=turetried installing AccessDatabaseEngine.exe(but it did not help) I tried to give the temp directory access I tried all the items in the following linkThe thing is I have on the server two folders for programfiles and programfiles (x386) the one x86 has a small folder office11 and officexxbut the programfiles has no office folderI tried all the items in this linkhttp://www.excel-sql-server.com/excel-import-to-sql-server-using-distributed-queries.htmone thing is that on trying to install AccessDatabaseEngine.exe_64 and tried to import an excel spreadsheet 2007 it gave me an error that xx is not registered on this system.Thankssarah |
|
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2011-11-21 : 17:08:34
|
Another strange thing I was even trying to add excel as a linked server I did not find niehter micorosoft jet 4.0 ole db provider nor microsoft 12 access database engine old dbsarah |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-22 : 01:20:45
|
quote: Originally posted by sarahmfr Another strange thing I was even trying to add excel as a linked server I did not find niehter micorosoft jet 4.0 ole db provider nor microsoft 12 access database engine old dbsarah
then i think you've to get latest providers installed on your office machine------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2011-11-22 : 02:06:44
|
do you mean http://support.microsoft.com/kb/239114/but this article saysFor computers that are running Windows Server 2008If you are running Windows Server 2008, you have a later version of Jet 4.0 than the version that is included with Jet 4.0 SP8. so which one to installsarah |
|
|
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2011-11-22 : 14:31:50
|
It worked thankssarah |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-22 : 23:48:55
|
wc------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|