Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Need to check multiple sql servers access using batch file.

$
0
0

I have 90 sql servers instances on which i have to check these are accessible or not for me, but its hard to connect one by one instance via SSMS & check i am able to connect sql server or not. for that i need to create a batch file in which i can call all 90 sql instances name & which would get result me in one text file if there is any server is not accessible.

I am stuck with this as this one is only work for single sql server...sqlcmd -S server_name -E -oC:\test.txt

is anybody know how to create batch file?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>