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?