Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save leonguyen/9359771 to your computer and use it in GitHub Desktop.

Select an option

Save leonguyen/9359771 to your computer and use it in GitHub Desktop.
msdbA
async.each(cfg.msdbA, function(config, cb){
var connection = new sql.Connection(config, function(err){
var request = new sql.Request(connection);
var queryStr = "";
request.query(queryStr, function(err, rows) {
if(err) console.log(err);
//Code here
});
});
}, function(err){
if(err){ console.log(err); };
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment