# tediousjs/node-mssql

Microsoft SQL Server client for Node.js

Repository: https://github.com/tediousjs/node-mssql
Canonical: https://ross.abutalabs.com/products/node-mssql
Homepage: https://tediousjs.github.io/node-mssql
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, nodejs, sql-server, mssql, tds
Last push: 2026-08-12T09:20:28+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 91, longevity 100
- inputs: {"age_days": 4771, "days_push": 21, "days_rel": 62, "gap_med": 9, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2274, forks 471 (observed 2026-08-28T04:06:33.338378+00:00)

## What it is
node-mssql is a Microsoft SQL Server client library for Node.js that provides a high-level API over the pure-JavaScript Tedious TDS driver, with an optional native MSNodeSQLv8 driver. It supports connection strings, config objects, connection pooling, parameterized queries via tagged template literals, and stored procedures.

## Use cases
- connect to sql server from node.js
- run parameterized queries against mssql
- use stored procedures in sql server from javascript
- connect to azure sql database from node
- connection pooling for sql server in node.js
- windows authentication to sql server from node

## When to choose
- your Node.js app needs to query Microsoft SQL Server or Azure SQL
- you want a promise-based API with built-in connection pooling
- you need a pure-JavaScript driver that runs on any OS
- you want safe parameterized queries via tagged template literals

## When to avoid
- you use PostgreSQL, MySQL, or another non-Microsoft database
- you need a driver for a runtime other than Node.js
- you require Windows Authentication without the native msnodesqlv8 driver

## Facets
- artifact type: library
- maturity: active
- function: database-driver, database
- domain: databases, backend, web-development, developer-tools
- platform: cross-platform, windows
- tags: mssql, sql-server, tds, connection-pooling, azure-sql, promises, typescript-support, nodejs, linux, macos

## Member repositories
- tediousjs/node-mssql (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:33.338378+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:41:32.995609+00:00, confidence not recorded.
  - readme: https://github.com/tediousjs/node-mssql (fetched 2026-08-28T04:06:33.338378+00:00, sha 484e8ea67dd2)
  - homepage: https://tediousjs.github.io/node-mssql (fetched 2026-08-29T10:22:21.791170+00:00, sha 1391c1d0632b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
