Connection cluster for MS SQL Server

Asked

Viewed 21 times

0

I need to create a Connection Cluster for MS SQL Server.

Here’s an example I performed in Mysql:

var mysql = require('mysql');

var db_cluster_config = require('./dbMysqlUtils').cluster_config;

var mySqlDB = function (config, logConfig) {
   this.cluster = mysql.createPoolCluster(db_cluster_config);
   this.cluster.add('Cfg', config);
   this.cluster.add('Log', logConfig);
   this.configs = { cfg: config, log: logConfig };
}

But it does not work for MS SQL Server.

  • But you’re using the module mysql. How it works for the SQL Server? Here is the link to the module mssql.

  • I did mysql, I put it only as an example to get a sense of what I need. Now in the mssql application I’m already using the mssql module, but I can’t mount the cluster.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.