Article View: es.comp.os.as400
Article #422RE: ASP y AS400
From: p a
Date: Wed, 13 Sep 2000 07:38
Date: Wed, 13 Sep 2000 07:38
47 lines
1831 bytes
1831 bytes
Crea una conexion DNS de Sistema (ODBC), con eso y el siguiente codigo ASP
me funciona a mi.
DNS de Sistema: AS400 ASP
<%
' Abrir una conexi�n
Set db = Server.CreateObject("ADODB.Connection")
db.Open("AS400 ASP")
' Construcci�n de una instrucci�n SQL
strSQL = "SELECT * FROM MCLI ORDER BY CLNOMB"
' Ejecuci�n de la consulta
Set ds = Server.CreateObject("ADODB.Recordset")
ds.Open strSQL, db, 3
Do While Not ds.EOF
%>
<BR CLEAR="ALL">
<%=ds("CLNOMB")%>/<%=ds("CLPOBL")%>
<%
ds.MoveNext
Loop
'Cierre de la base de datos
ds.Close
db.Close
Set ds = Nothing
Set db = Nothing
%>
Espero que te funcione, saludos y animo
FELIX <padreangel@mixmail.com> escribi� en el mensaje de noticias
8pl92l$95e$1@diana.bcn.ttd.net...
> Hola a todos:
>
> Estoy intentando acceder al AS400 mediante una p�gina ASP, he intentado la
> configuracion del onjeto connection de varias formas pero no me funciona,
el
> driver ODBC si funciona ( al menos con Excel y Access).
>
> Saludos
>
> F�lix.
>
>
>
Technical Details
Message-ID:
<8pnaj4$t4k$1@diana.bcn.ttd.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mailReferences:
<8pl92l$95e$1@diana.bcn.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 104581,42781c6c56f8fc83 X-Google-Attributes: gid104581,public X-Google-ArrivalTime: 2000-09-13 00:34:58 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail From: "p a" <agrovin@skios.es> Newsgroups: es.comp.os.as400 Subject: RE: ASP y AS400 Date: Wed, 13 Sep 2000 09:38:28 +0200 Organization: Telefonica Transmision de Datos Lines: 49 Message-ID: <8pnaj4$t4k$1@diana.bcn.ttd.net> References: <8pl92l$95e$1@diana.bcn.ttd.net> NNTP-Posting-Host: user723.ddnet.es X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300