December 10th, 2015, 06:20 AM
Join Date: Dec 2015
Location: San Jose, CA
Time spent in forums: 17 m 12 sec
Reputation Power: 0
You should use some server side language like PHP, Dot Net, Java, Python etc.
But still because you are asking so I am posting the connectivity of SQL server.
var con = new ActiveXObject("ADODB.Connection") ;
var connectionstring="Data Source=<server>;Initial Catalog=<catalog>;User ID=<user>;Password=<password>;Provider=SQLOLEDB";
var rrs = new ActiveXObject("ADODB.Recordset");
rrs.Open("SELECT * FROM table", connection);