To get a list of SQL Server instances currently installed in your network, execute either of the below commands
Exec xp_cmdshell 'SQLCMD /L'
OR
Exec xp_cmdshell 'OSQL /L'
If you want to populate a text file with the results then, open the command prompt (Go to Run, Type cmd and click ok) and type this command and hit enter
SQLCMD /L > C:\ListOfServers.txt
This command will populate the text file ListOfServers.txt with the results obtained from SQLCMD /L
Thursday, February 18, 2010
List of SQL Server instances currently installed in your network
Labels:
Interview Questions,
SQL Information,
SQL Queries
Subscribe to:
Post Comments (Atom)
1 comment:
Aivivu chuyên vé máy bay, tham khảo
vé máy bay đi Mỹ giá bao nhiêu
chuyến bay từ mỹ về việt nam tháng 1/2021
từ canada về việt nam quá cảnh ở đâu
các chuyến bay sang nhật có bị cấm không
vé máy bay hàn quốc hà nội
Vé máy bay từ Đài Loan về Việt Nam
chuyen bay chuyen gia trung quoc
Post a Comment