Contoh:
<%@ Language=VBScript %>
<html>
<head>
<title>Oracle Test</title>
</head>
<body>
<center>
<%
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "dsn=ORCL;uid=scott;pwd=tiger;"
Set objRs = objConn.Execute("SELECT * FROM EMP")
Response.Write "<table border=1 cellpadding=4>"
Response.Write "<tr>"
For I = 0 To objRS.Fields.Count - 1
Response.Write "<td><b>" & objRS(I).Name & "</b></td>"
Next
Response.Write "</tr>"
Do While Not objRS.EOF
Response.Write "<tr>"
For I = 0 To objRS.Fields.Count - 1
Response.Write "<td>" & objRS(I) & "</td>"
Next
Response.Write "</tr>"
objRS.MoveNext
Loop
Response.Write "</table>"
objRs.Close
objConn.Close
%>
</center>
</body>
</html>
--- In [email protected], "mandris03" <[EMAIL PROTECTED]>
wrote:
>
>
> Kepada para Master Yth,
>
> Saya pemula untuk Oracle 10G. Saya sedang belajar buat aplikasi
Web
> dengan ASP.
> Database nya Oracle 10G.
> Servernya pake Windows Server 2003.
>
> Please help me, bagaimana caranya connect ke oracle ?
> Atau bagaimana Script ASP -nya ?
> Apakah ada perbedaan dgn Oracle-oracle sebelumnya (versi 8i atau
9i ?)
>
> Tolong pencerahan dari para Master yg baik hati.
>
> Atas perhatiannya saya ucapkan TERIMAKASIH
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/PhFolB/TM
--------------------------------------------------------------------~->
--
-----------I.N.D.O - O.R.A.C.L.E---------------
Keluar: [EMAIL PROTECTED]
Website: http://indo-oracle.lizt.org (NEW)
-----------------------------------------------
Bergabung dengan Indonesia Thin Client User Groups,
Terminal Server, Citrix, New Moon Caneveral, di:
http://indo-thin.vze.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indo-oracle/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/