|
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!
|