From: ANDREAS STEINBACH <ANDREAS.STEINBACH@INF.OEBB.AT>
To: pgsql-sql@postgresql.org
Subject: Oracle, ODBC, MS IIS -> problem!
Date: 8 Nov 2000 14:50:30 +0000
Message-ID: <E170ISM3EC5B*@MHS> (raw)
Hi,
My problem is:
I have to create a web interface for an Oracle database. I use MS Internet
Information Server, ODBC driver (tried one from MS and one from Oracle) and an
Oracle database (I have no permission to change anything in that database).
I don't have a problem accessing one table, but I need to read fields of
several tables and some of them have the same name. I simplified my problem to
the following example:
select p.pkey, p.text, d.dkey, d.text from schema1.product p, schema1.details d
where p.pkey = 15555
I created a webpage containing the following:
----------
<% Set cn = Server.CreateObject("ADODB.Connection")
cn.open "dsn=XXXXXXX;uid=XXXXXXX;pwd=XXXXXXX"
abfrage="select p.pkey, p.text, d.dkey, d.text from schema1.product p,
schema1.details d where p.pkey = 15555"
Set rs = cn.Execute(abrage) %>
<% m_produkt=Server.HTMLEncode(rs.Fields("p.pkey").Value)%>
---------
The last line give a (german) error message that I will try to translate:
ADODB.Fields-error '800a0cc1'
ADO couldn't find an object in the list, that corresponds to the name or the
ordinal reference, that was requested by the application.
Is there anybody out there who can be of help on that matter? I really tried to
find an answer myself, but now I'm stuck.
Any help is highly appreciated. Thanks in advance,
Andreas (Vienna, Austria, Europe, Earth)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: ANDREAS.STEINBACH@INF.OEBB.AT
Subject: Re: Oracle, ODBC, MS IIS -> problem!
In-Reply-To: <E170ISM3EC5B*@MHS>
References: <E170ISM3EC5B*@MHS>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox