sp_help_targetservergroup (Transact-SQL)
Belirtilen grup içindeki tüm hedef sunucularını listeler.Herhangi bir grubu belirtilmezse, SQL Server Tüm hedef sunucu grupları hakkında bilgi verir.
sp_help_targetservergroup
[ [ @name = ] 'name' ]
Bağımsız değişken
- [ @name= ] 'name'
Is the name of the target server group for which to return information.name is sysname, with a default of NULL.
Dönüş Kodu Değerleri
0 (başarılı) veya 1 (hata)
Sonuç Kümeleri
Sütun adı |
Veri türü |
Açıklama |
---|---|---|
servergroup_id |
int |
Sunucu grubunun kimlik numarası |
adı |
sysname |
Sunucu grubunun adı |
İzinler
Bu yordamı çalıştırmak için gerekli izinleri varsayılan olarak sysadmin sabit sunucu rolü.
Örnekler
C.Bilgi için tüm hedef sunucu grupları listeleniyor.
Bu örnek, tüm hedef sunucu grubu bilgilerini listeler.
USE msdb ;
GO
EXEC dbo.sp_help_targetservergroup ;
GO
b.Belirli bir hedef sunucu grubu için bilgi listesi
Bu örnek bilgilerini listeler Servers Maintaining Customer Information Hedef sunucu grubu.
USE msdb ;
GO
EXEC dbo.sp_help_targetservergroup
N'Servers Maintaining Customer Information' ;
GO