NodeJs mssql连接字符串

时间:2019-05-08 14:44:49

标签: node.js sql-server

我有一个问题,因为它出现错误SQL Server Network Interfaces: Connection string is not valid,连接字符串出了什么问题?

app.get('/', function (req, res) {

    var sql = require('mssql/msnodesqlv8');
    var config = {

      driver: 'msnodesqlv8',
      connectionString: 'Driver={SQL Server Native Client 11.0};Server={#{db_mydb.com},#{14400}};Uid={#{my_user}};Pwd={#{my_password}};Trusted_Connection={#{trusted}};',
    };

0 个答案:

没有答案