There are ways to accomplish this objective
- TSQL, which is very old way and doesn’t meets the requirement
- SQLCMD command line utility
- OSQL command line utility
- Microsoft Assessment and Planning (MAP) Toolkit, best tool
Note : osql -L and SQLCMD -L will only return for those instance, where SQL Browser services are running. For example, if you have stopped "SQL Server Browser" services, where SQL services are running that you will not get a sure results, as this only captures the instance names, which are publish via SQL Server Browser.
No comments:
Post a Comment