Applies To: SQL Server 2014, SQL Server 2016 Preview
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Returns a list of all granted logins for a publication. This stored procedure is executed at the Publisher on the publication database.
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 returns information for all members of the sysadmin fixed server role with valid logins at the Distributor that existed when the publication was created, as well as the current login.
0 returns information for all members of the sysadmin fixed server role with valid logins at the Distributor that existed when the publication was created as well as all users in the publication access list who do not belong to the sysadmin fixed server role.