Como listar as instâncias intaladas no servidor.
Declare @tb_Instances Table (InstanceName NVarChar(255),
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
Nenhum comentário:
Postar um comentário