var connection = new ActiveXObject("ADODB.Connection") ; var connectionstring="Data Source=<server>;Initial Catalog=<catalog>;User ID=<user>;Password=<password>;Provider=SQLOLEDB"; connection.Open(connectionstring); var rs = new ActiveXObject("ADODB.Recordset"); rs.Open("SELECT * FROM table", connection); rs.MoveFirst while(!rs.eof) { document.getElementById('text area control name').value = rs.fields(1); rs.movenext; } rs.close; connection.close;</password></user></catalog></server>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)