我怀疑您将必须用输出JSON的Web服务包装SQL Server。从积极的方面来说,这应该相对容易做到。
如果node.js中的Javascript引擎可以做到这一点,那就很好
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.MoveFirstwhile(!rs.eof){ document.write(rs.fields(1)); rs.movenext;}rs.close;connection.close;


