Computing.Net > Forums > Web Development > ADODB connection to Oracle 7

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ADODB connection to Oracle 7

Reply to Message Icon

Name: Tupax
Date: March 5, 2004 at 01:40:27 Pacific
OS: Windows 2000 server
CPU/Ram: Pentium 4, 1 GB RAM
Comment:

A user reports an occasional error when opening an ADODB.Connection to his Oracle 7 db from an ASP page through ODBC (under IIS - Windows 2000). His ODBC driver is the Oracle one, not the MS one (the driver name in ODBC administrator reportedly is "Oracle 73 ver 2.5", where "73" probably is "7.3").

The ASP error code is 0x8000FFFF, which means "Catastrophic failure" (sic) and it's related to several different situations; unfortunately i couldn't find the mine and now i'm stuck.

The code of the ASP page where the error occurs is:

...
set myCon = CreateObject("ADODB.Connection")

myCon.Open "DSN=MYDSNNAME;uid=MyUID;pwd=MyPwd"
...

and the error is on the 2nd line.

The error occurs just sometimes. Most of the times this page works fine, the connection gets succesfully opened.

Has anybody any clue or maybe has experienced something similar ?



Sponsored Link
Ads by Google

Response Number 1
Name: MarkM
Date: March 15, 2004 at 12:55:19 Pacific
Reply:

It may be the reason, I'm not sure but:

When creating an ActiveX object in an ASP page you need to prefix it with Server.

i.e.:
set myCon = Server.CreateObject("ADODB.Connection")

Hope this helps! Cheers.


0
Reply to Message Icon

Related Posts

See More


java chat applet to conne... How do I setup PHP & ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: ADODB connection to Oracle 7

ASP.NET problem with connection to www.computing.net/answers/webdevel/aspnet-problem-with-connection-to-/1963.html

Cannot connect to MySQL with PHP www.computing.net/answers/webdevel/cannot-connect-to-mysql-with-php/1668.html

No one can connect to my server www.computing.net/answers/webdevel/no-one-can-connect-to-my-server/1312.html