Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting javascript to Oracle!!!

Status
Not open for further replies.

mgonzalez

Programmer
Aug 2, 2000
51
MX

Hello


Someone know how is the way to connect to a database of Oracle. I have done this whith vbscript whith ADO to SQL Server but I woluld like to know how is the syntax to do the connection


Thanks.

 
<%
var aconn = Server.CreateObject(&quot;ADODB.Connection&quot;);
var recset = Server.CreateObject(&quot;ADODB.Recordset&quot;);
aconn.Open(&quot;DSN=;UID=;PWD=;&quot;);
var sql = &quot;SELECT * FROM tablename&quot;;
recset.open(sql, aconn, 3, 3);
while(!recset.EOF)
{
//do stuff;
recset.MoveNext();
}

adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top