Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Open row set command not working as expected Expand / Collapse
Author
Message
Posted Wednesday, February 06, 2013 12:52 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, March 17, 2014 6:48 AM
Points: 43, Visits: 104
Hi,

i need to use openrow set command to fetchdata from excel.

it is throwing error- The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.

But i am able to fetch data from SSIS by connecting to excel source and using import export wizard too without any error.which means we have Microsoft.ACE.OLEDB.12.0 available on the server.(correct me if i am wrong)

i have to use open row set command only.please let me know how can i achieve using open row set command.
Post #1416289
Posted Wednesday, March 06, 2013 8:10 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Wednesday, April 16, 2014 9:25 AM
Points: 7,070, Visits: 12,523
subramani.rudrappa 78855 (2/6/2013)
But i am able to fetch data from SSIS by connecting to excel source and using import export wizard too without any error.which means we have Microsoft.ACE.OLEDB.12.0 available on the server.(correct me if i am wrong)

Not necessarily. The Excel Provider built into SSIS 2012 uses the ACE driver but the Import/Export Wizard will be using 32-bit as it is launched from SSMS, a 32-bit app. If your SQL Server is 64-bit then OPENROWSET issued via T-SQL will be looking for a 64-bit version of the driver which may not be present.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1427438
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse