You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
358 B
Python

"""
Sample script to detect all SQLServer instances
"""
from Net2Scripting.network.sqlserver import SqlServerFinder
if __name__ == "__main__":
inst = SqlServerFinder()
print("Please wait for the servers to respond...")
srvs = inst.find()
if srvs:
for s in srvs:
print(s)
else:
print("No servers detected")