sp_help_publication_access (T-SQL)

Returns a list of all granted logins for a publication.

Syntax

sp_help_publication_access [@publication =] 'publication',
    [@return_granted =] 'return_granted'] [,[@login =] 'login']
    [,[@initial_list =] initial_list]

Arguments
[@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 NT 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
Is whether to get the initial publication access list for the new publication. initial_list is bit, with a default of 0. If 1, returns the publication access list, which includes all the members of the sysadmin that have valid logins at the Distributor and the current login.
Result Sets
Column name Data type Description
loginname nvarchar(256) Actual login name.
isntname int 0 = Login is a Microsoft SQL Server login.
1 = Login is a Windows NT user or group.
isntgroup int 0 = Login is a Microsoft SQL Server login.
1 = Login is a Windows NT user or group.

Remarks

sp_help_publication_access is used in all types of replication.

Permissions

Execute permissions default to the public role.

See Also
sp_grant_publication_access System Stored Procedures
sp_revoke_publication_access  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.