PC Review


Reply
Thread Tools Rate Thread

ADO connection string error??

 
 
=?Utf-8?B?QnJlbnQ=?=
Guest
Posts: n/a
 
      3rd Apr 2007
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 With Quote
 
 
 
 
=?Utf-8?B?QnJlbnQ=?=
Guest
Posts: n/a
 
      3rd Apr 2007
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 With Quote
 
=?Utf-8?B?QnJlbnQ=?=
Guest
Posts: n/a
 
      3rd Apr 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection String error in VB.net Manoj Nair Microsoft VB .NET 3 15th Apr 2006 03:39 PM
connection string in web.config error Matt Microsoft ADO .NET 1 8th Nov 2003 08:57 PM
connection string in web.config error Matt Microsoft ASP .NET 1 8th Nov 2003 08:57 PM
Nasty connection String error / encoding.ascii.getstring error james Microsoft VB .NET 1 15th Sep 2003 05:20 PM
Connection String error Phill Microsoft C# .NET 1 20th Aug 2003 05:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:27 AM.