sp_help_publication_access (Transact-SQL)
Bir yayın için verilen tüm oturumlarının listesini döndürür.Bu saklı yordam, yayın veritabanı üzerinde yayımcı adresindeki yürütülür.
Sözdizimi
sp_help_publication_access [ @publication = ] 'publication'
[ , [ @return_granted = ] 'return_granted' ]
[ , [ @login = ] 'login' ]
[ , [ @initial_list = ] initial_list ]
Bağımsız değişkenler
[ @publication=] 'publication'
Is the name of the publication to access.publication is sysname, with no default.[ @return_granted=] 'return_granted'
Is the login ID.return_granted is bit, with a default of 1.If 0 is specified and SQL Server Authentication is used, the available logins that appear at the Publisher but not at the Distributor are returned.If 0 is specified and Windows Authentication is used, the logins not specifically denied access at either the Publisher or Distributor are returned.[ @login=] 'login'
Is the standard security login ID.login is sysname, with a default of %.[ @initial_list =] initial_list
Specifies whether to return all members with publication access or just those who had access before new members were added to the list.initial_list is bit, with a default of 0.1 tüm üyeleri için bilgi verir sysadmin sabit sunucu rolü yayın oluşturulduğunda, varolan dağıtımcı adresindeki geçerli oturumların yanı sıra, geçerli oturum açma.
0 tüm üyeleri için bilgi verir sysadmin sabit sunucu rolü yayın için ait olmayan yayın erişim listesi aynı zamanda kullanıcıların oluşturulduğunda, varolan dağıtımcı adresindeki geçerli oturumları ile sysadmin sabit sunucu rolü.
Sonuç Kümeleri
Sütun adı |
Veri türü |
Açıklama |
---|---|---|
LoginName |
nvarchar(256) |
Gerçek oturum açma adı. |
Isntname |
int |
0 = Oturum açma Windows kullanıcı değil. 1 = Oturum açma Windows kullanıcısı olduğu. |
Isntgroup |
int |
0 = Oturum açma Windows Grup değil. 1 = Oturum açma Windows grubu olduğunu. |
Dönüş Kodu Değerleri
0 (başarılı) veya 1 (başarısız)
Açıklamalar
sp_help_publication_access çoğaltma tüm türleri kullanılır.
Zaman her ikisi de Isntname ve Isntgroup sonuç küme olan 0, login olduğu kabul edilir bir SQL Server oturum açma.
İzinler
Yalnızca üyeleri sysadmin sabit sunucu rolü veya db_owner sabit veritabanı rolü olabilir yürütmek sp_help_publication_access.