tedious
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@azure/identity | 2.1.0 | 235.93 kB | MIT | prod | |
@azure/keyvault-keys | 4.8.0 | 1.21 MB | MIT | prod | |
@js-joda/core | 5.6.2 | 7.36 MB | BSD-3-Clause | prod | |
bl | 6.0.12 | 89.65 kB | MIT | prod | |
es-aggregate-error | 1.0.13 | 27.73 kB | MIT | prod | |
iconv-lite | 0.6.3 | 186.2 kB | MIT | prod | |
js-md4 | 0.3.2 | 421.36 kB | MIT | prod | |
jsbi | 4.3.0 | 131.17 kB | Apache-2.0 | prod | |
native-duplexpair | 1.0.0 | 3.71 kB | MIT | prod | |
node-abort-controller | 3.1.1 | 5.28 kB | MIT | prod | |
punycode | 2.3.1 | 7.42 kB | MIT | prod | |
sprintf-js | 1.1.3 | 10.71 kB | BSD-3-Clause | prod |
Tedious is a pure JavaScript implementation of the Tabular Data Stream (TDS) protocol, used for interacting with instances of Microsoft's SQL Server databases. It aims to remain a fairly lean implementation of the TDS protocol and does not present extensive surplus functionality. Tedious supports various TDS versions, including TDS 7.4, TDS 7.3.B, TDS 7.3.A, TDS 7.2 and TDS 7.1, encompassing compatibility with SQL Server 2000 all the way through to SQL Server 2022.
Before you can use Tedious, make sure that Node.js is installed on your system. Once you have Node.js, you can easily install Tedious by utilizing NPM (Node Package Manager) with the following command: npm install tedious
. After successful installation, you can start using it for connecting to your SQL Server databases. The script will find its setup in a context similar to the following JavaScript code
const Connection = require('tedious').Connection;
const config = {
userName: 'your-username',
password: 'your-password',
server: 'localhost',
options: {
database: 'your-database'
}
};
const connection = new Connection(config);
connection.on('connect', function(err) {
// If no error, then good to go...
executeStatement();
}
);
Do remember to replace 'your-username', 'your-password', 'localhost', and 'your-database' with your database's specific details.
For a deeper exploration of Tedious and how it can be used for interacting with SQL Server instances, you can visit the documentation and code samples provided at tediousjs.github.io/tedious. This comprehensive guide can assist developers in understanding the functionality and effective use of Tedious.