Skip to content

tediousjs/node-ssrp

Folders and files

NameName
Last commit message
Last commit date
Jun 6, 2020
Jun 19, 2020
Jun 19, 2020
Jun 6, 2020
Jun 6, 2020
Jun 6, 2020
Jun 6, 2020
Jun 6, 2020
Jun 6, 2020
Jun 6, 2020
Jun 6, 2020

Repository files navigation

node-ssrp

An implementation of the SQL Server Resolution protocol.

const { listInstances } = require('ssrp');

const instances = await listInstances({ address: "192.168.0.4", family: 4 });
if (instances.length === 0) {
  console.log("Found no SQLServer instances.");
  return;
}

console.log("Found the following SQLServer instances:");
for (let i = 0, length = instances.length; i < length; i++) {
  console.log(`* ${instance.instanceName} - ${instance.version}`);
}