View Single Post
Old 06-28-2005, 11:11 PM   #1 (permalink)
awieds
Registered User
 
Join Date: Mar 2005
Posts: 42
awieds is on a distinguished road
Connect to Database

How do I connect to a database using Javascript? I have an asp page. I connect to the database using VBscript and it works fine but I don't know how to connect using javascript.
The following is my vbscript code:

Set rs = Server.CreateObject("ADODB.Recordset")
strQuery="Select * from products"
rs.Open strQuery, MM_myConn_STRING, 0, 2 ,1
How do I do that in javascript??

Either that or I can create an array using vbscript if there is a way for me to access it in javascript.

Thanks!
awieds is offline   Reply With Quote