Como listar as instâncias intaladas no servidor.
Declare @tb_Instances Table (InstanceName NVarChar(255),
SELECT * FROM Busca_de_Conhecimento WHERE Tema LIKE '% Banco de Dados %' or Tema LIKE '% Assuntos relacionados%'
RegPath NVarChar(255)) Insert Into @tb_Instances exec master..xp_regenumvalues @rootkey = N'HKEY_LOCAL_MACHINE', @key = N'SOFTWARE\\Microsoft\\Microsoft SQL Server\\Instance Names\\SQL' Select * from @tb_Instances
SELECT SERVERPROPERTY('productversion') as Versão, SERVERPROPERTY('productlevel')as [Service Pack], SERVERPROPERTY('edition')as EdiçãoOu
SELECT @@VERSION