A modern, maintained fork of the Microsoft SQL Server connector for the LoopBack framework. This package provides a datasource connector that bridges LoopBack models to MSSQL databases using the `mssql` driver. It supports both object-based and URL-based configuration, ES6+ async/await, and updated dependencies (mssql v12+). Version 1.0.5 targets Node >=10 and is suitable for LoopBack 3.x applications where the original loopback-connector-mssql is outdated. Key differentiators: actively maintained, security-focused, supports modern Node.js and MSSQL features.
npm install loopback-cnn-mssqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure a LoopBack datasource and use the connector programmatically to query MSSQL.
Either use only URL or only explicit properties; if mixing, ensure intent is clear.
Set host to 'localhost\\SQLEXPRESS' or similar.
Add "trustServerCertificate": true to datasource config.
Upgrade to Node >=10.
Consider migrating to LoopBack 4 or using the connector programmatically outside LoopBack.
Add "trustServerCertificate": true to the datasource configuration.
Verify credentials and ensure SQL Server is configured for mixed mode authentication.
Create the database or grant access to the user.
Check host, port, network connectivity, and firewall rules.