Oracle Database Query into Excel

ChrisUK

Well-known Member
Joined
Sep 3, 2002
Messages
675
Hi.

I'm struggling getting information from an Oracle database, I'm falling down at the connection string stage and getting an "undocumented error"

Here is the string I'm using, can anyone suggest another string or way to do this please.

TIA

Chris

Set ConnectDB = New ADODB.Connection
ConnectString = "Provider=msdaora;Data Source=Server1;User Id=userid;Password=userpw;"

ConnectDB.Open ConnectString
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I don't know if this would work, but have you tried recording the manual steps of performing the connection and then examining the code?

just a thought.
 
Upvote 0
I've got a bit further ....

It seems you need the Oracle client running on your PC which is a bit crap really, why you can't use ODBC or ADO like most other DB's is beyond me ... another reason why not to buy Oracle I suppose.

It unfortunatly means I can't fdo this on my own, I need to enlist others in the organisation and it starts to get very messy!

Thanks for your help anyway
 
Upvote 0

Forum statistics

Threads
1,202,905
Messages
6,052,479
Members
444,585
Latest member
Godtymer

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top