Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 11th, 2008, 04:44 PM
Newbie
 
Join Date: Aug 2008
Posts: 4
Default I Can not connect to Oracle 10g XE from ASP perlscript web page on IIS 6

I Can not connect to Oracle 10g XE from ASP perlscript web page on IIS 6 running on server 2003. I have set up the database and the ODBC connections. The ODBC connection is workinh and I can connect to it via the ODBC test. I have the same ASP application running on a VISTA workstation and it connects fine.


I am not using DBD I use ADODB.Connection.
This works on other servers. NT, VISTA, server 2000. Not sure if it is a permission issue in IIS or what. Thanks for any help


use Win32::ASP;

$Conn = $Server->CreateObject("ADODB.Connection");
$Conn->Open("DSN=SCDATA;UID=tcm;PWD=tcm");

$sql = "select distinct initials, lastname || ', ' || firstname lastname from nurses order by lastname";
$Rs = $Conn->Execute($sql);

while (! $Rs->EOF) {
$empl = $Rs->Fields('initials')->value;
$nme = $Rs->Fields('lastname')->value;
print "<option value=$empl>$nme</option>";
$Rs->MoveNext;
} # while

$Rs->Close;
Reply
  #2  
Old August 12th, 2008, 02:18 PM
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,664
Default

There might differences req in the connection string from the one in your test. You may be right about permissions, but if your app is accessible at all then it won't be IIS.
Reply
  #3  
Old August 12th, 2008, 03:57 PM
Newbie
 
Join Date: Aug 2008
Posts: 4
Default

I figured it out. I installed the Oracle XE client even though I should not need to as I have the database loaded on the same server as the WEB. Set up the ODBC using XEClient driver and included the server name in the tsn service name ie. servername/XE.
Reply
Reply

Bookmarks

Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles