dbTalk Databases Forums  

ODBC Connection fine when testing during setup but doesn't work in ASP code

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss ODBC Connection fine when testing during setup but doesn't work in ASP code in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hypermommy
 
Posts: n/a

Default ODBC Connection fine when testing during setup but doesn't work in ASP code - 07-15-2003 , 09:20 AM






Hi all,

Hope you can give me a hint of what to be looking for here. We've got
an Oracle ODBC connection that we just set up this morning and it
works fine when you click on the "test connection" button on one of
the setup screens. However, when I attempt to use this ODBC
connection in my ASP code, I get an
"ORA-12154: TNS:could not resolve service name" error. We were
getting that yesterday when we were incorrectly trying to set up the
ODBC connection, but we don't get that anymore during setup and, in
fact, get a successful test of connection. Except for when I try to
use it.....

Thanks in advance for any and all avenues of investigation you can
give me.

Denise

Reply With Quote
  #2  
Old   
tojo
 
Posts: n/a

Default Re: ODBC Connection fine when testing during setup but doesn't work in ASP code - 07-15-2003 , 11:13 AM






In article <7ed5e93a.0307150620.7378ac44 (AT) posting (DOT) google.com>,
hypermommy (AT) comcast (DOT) net says...
Quote:
Hi all,

Hope you can give me a hint of what to be looking for here. We've got
an Oracle ODBC connection that we just set up this morning and it
works fine when you click on the "test connection" button on one of
the setup screens. However, when I attempt to use this ODBC
connection in my ASP code, I get an
"ORA-12154: TNS:could not resolve service name" error. We were
getting that yesterday when we were incorrectly trying to set up the
ODBC connection, but we don't get that anymore during setup and, in
fact, get a successful test of connection. Except for when I try to
use it.....

Thanks in advance for any and all avenues of investigation you can
give me.

Denise

What does your ASP connection string look like? Here are the basic
components:

"Provider=MSDASQL.1;Persist Security Info=False;Data
Source=Name_Of_DSN;User ID=USERNAME;Password=PASSWORD;"

-- Tom


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.