PowerShell - List all SQL instances on my system?

后端 未结 7 2038
一生所求
一生所求 2021-02-19 15:04

Is there a Powershell command to list all SQL instances on my system? (MS SQL 2008)

相关标签:
7条回答
  • 2021-02-19 16:09

    The System.Data.Sql namespace contains classes that support SQL Server-specific functionality.

    By using the System.Data.Sql namespace you can get all MSSQL instances on a machine using this command in windows power shell: [System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources()

    0 讨论(0)
提交回复
热议问题