No of SQL server running in a domain

  • Hi,

    I want the number of servers (which have SQL server installed) in our domain (say abc.com). We can find it from some of the third party tool like Discovery. Do you have any scripts, you are using to get the servers in a domain?

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • from cmd prompt, try this :-

    sqlcmd -L >c:\serverlist.txt

    which will search all the sql server in domain and will write it in c:\sqlserver.txt. You can later on open this file to see the server list.

    ----------
    Ashish

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply