How do you use javascript to return value from SQL Server database
Use javascript to return value from SQL Server database
var RS1 = Server.CreateObject("ADODB.RECORDSET") RS1.ActiveConnection = "DSN=Pubs"
RS1.Open ("select * from authors")
myVal = RS1.Fields("au_lname").value //remove the .value
//to change myVal
Response.Write ((myVal) + "
")
RS1.MoveNext()
Response.Write (myVal)
No comments:
Post a Comment