MSSQL adapter for Sails.js and Waterline ORM. Current stable version is 2.0.2, supporting Sails 1.x. Designed to allow Sails applications to connect to Microsoft SQL Server databases, including Azure SQL. It provides Waterline-compatible model operations (create, read, update, delete) and exposes a `query()` method for raw SQL. Maintenance is minimal; the adapter is largely stable but receives infrequent updates. Compared to the official `sails-sqlserver`, this package is community-maintained and may have less active support.
npm install sails-sqlserverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure the adapter as the default datastore, define a model, perform CRUD operations, and run raw SQL.
Consider using the official sails-sqlserver package from Sails core (npm install sails-sqlserver --save) or migrate to another adapter.
Run `npm install sails-mssql` and configure adapter as 'sails-mssql' in datastores config.
Use the correct URL format: mssql://user:pass@host:port/dbname
If using Sails 1.x, ensure you have sails-mssql@2.x installed. For Sails 0.12, use sails-mssql@1.x.
Use sails.getDatastore().sendStatement() with BEGIN TRAN/COMMIT/ROLLBACK.
Start SQL Server service, ensure port 1433 is open, and verify the connection URL host/port.
Check credentials in connection URL and ensure SQL Server is configured for SQL Server Authentication (mixed mode).
Run `npm install sails-mssql --save` and set adapter: 'sails-mssql' in config/datastores.js