tds is an implementation of the TDS protocol, which is used for communication with Microsoft's SQL Server.
Current version: v0.0.9
install the tds modul manually by copying the tds folder into the node_modules folder (npm coming soon) edit default.js, configure your database connection
moduleexports =ConnectionString :/** database server */Server:'yourServer'/** database user's name */Login: 'yourUser'/** name of database to connect */Database: 'yourDatabase'/** database user's password */Password: 'yourPassword'/** database port */Port: 1433/** socket-connection timeout */Timeout:10000/** number of connections to use in connection pool0 will disable connection pooling*/poolSize: 0/** duration of node-pool timeout */poolIdleTimeout: 30000000/** port on that the tds server is listen */tdsServerPort: 8888
normally tds_server listen at port 8888
to test your installation, start your browser and fire a simple request like:
http://localhost:8888/tds?select getdate() as d
on a working system the response of the example request looks like the following JSON data with the actual date:
"result":"colData":"value": "d""precision": null"scale": null"type": 61"rows":"2012-11-02T16:15:48.716Z""outputParams":"returnStatus": null"error":"sqlErrNo": null"message": ""
notice: make sure, that your browser is able to handle http-headers
'Content-Type': 'application/json; charset=utf-8', for Firefox you can use JSONView
after install you are able to run the tests
Modul structure overview:
browse the deatiled documentation here. (docs/chart/tds_chart.html)
(The MIT License)
Copyright (c) 2011-2012 H. Ristau
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.