SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Open row set command not working as expected


Open row set command not working as expected

Author
Message
subramani.rudrappa 78855
subramani.rudrappa 78855
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 116
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.
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15085 Visits: 14396
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search