I am able to see both 2005 and 2008 SQL Server instances on my laptop using Powershell:
Get-Service | Where-Object {$_.Name -like 'MSSQL$*'}
Other possibilities to explore include enumerating through the RegisteredServers namespace.
More Related Contents:
- How to make a query with group_concat in sql server [duplicate]
- Using merge..output to get mapping between source.id and target.id
- Column “invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause”
- Insert multiple rows WITHOUT repeating the “INSERT INTO …” part of the statement?
- Parameter Sniffing (or Spoofing) in SQL Server
- What are the main performance differences between varchar and nvarchar SQL Server data types?
- SQL Server String or binary data would be truncated
- How to change identity column values programmatically?
- SQL Server Regular expressions in T-SQL
- Concatenating Column Values into a Comma-Separated List
- List the queries running on SQL Server
- SQL Server pivot vs. multiple join
- SQL Server Bulk insert of CSV file with inconsistent quotes
- Real vs. Floating Point vs. Money
- SQL Server Query: Fast with Literal but Slow with Variable
- An attempt to login using SQL authentication failed
- Parse XML in SQL Server
- SQL Server 2008 – How do i return a User-Defined Table Type from a Table-Valued Function?
- Check if a string contains a substring in SQL Server 2005, using a stored procedure
- Why SQL Server DATETIME type saves time in ticks of 1/300 of a sec?
- Database design: Calculating the Account Balance
- migrate data from MS SQL to PostgreSQL?
- INFORMATION_SCHEMA vs sysobjects
- Does query plan optimizer works well with joined/filtered table-valued functions?
- In SQL Server, how can I find everywhere a column is referenced?
- Is there an “IF EXISTS” test for a linked server?
- Full text catalog/index search for %book%
- Why insert-select to variable table from XML variable so slow?
- Slow query with cfqueryparam searching on indexed column containing hashes
- How to avoid SSIS FTP task from failing when there are no files to download?