• Hi John,

    I guess by now you have found:

    sqlcmd -Lc > c:\serverlist.txt

    Alternatively, you can put your :serverlist in a script file and use the sqlcmd switches

    -i (input file) and -o (output file)

    Regards, Michael