Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is my code, w/o the username/password:
Dim cn As New ADODB.Connection .. .. cn.Open "Provider=msdaora;Data Source=qse1.world;User ID=XX;Password=XX" When I run it in Excel it pauses a few seconds on the cn.Open statement then gives: Run-time error '-2147467259(80004005)': Automation error Unspecified error Any suggestions? I have tried just about every form of connection string and get the same message. Thank you. Brent |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Also, are there any special libraries/references I need for this?
"Brent" wrote: Here is my code, w/o the username/password: Dim cn As New ADODB.Connection . . cn.Open "Provider=msdaora;Data Source=qse1.world;User ID=XX;Password=XX" When I run it in Excel it pauses a few seconds on the cn.Open statement then gives: Run-time error '-2147467259(80004005)': Automation error Unspecified error Any suggestions? I have tried just about every form of connection string and get the same message. Thank you. Brent |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry, went to:
cn.Open "Data Source=qse1;User ID=xx;Password=xx;" and now it works. "Brent" wrote: Also, are there any special libraries/references I need for this? "Brent" wrote: Here is my code, w/o the username/password: Dim cn As New ADODB.Connection . . cn.Open "Provider=msdaora;Data Source=qse1.world;User ID=XX;Password=XX" When I run it in Excel it pauses a few seconds on the cn.Open statement then gives: Run-time error '-2147467259(80004005)': Automation error Unspecified error Any suggestions? I have tried just about every form of connection string and get the same message. Thank you. Brent |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I use a connection string? | Excel Discussion (Misc queries) | |||
Hiding SQL Connection String | Excel Programming | |||
Can't get connection string right | Excel Programming | |||
Can't get connection string right | Excel Programming | |||
What is the connection string ? | Excel Programming |