sp_getsubscriptiondtspackagename (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_getsubscriptiondtspackagename (Transact-SQL)

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 the name of the Data Transformation Services (DTS) package used to transform data before they are sent to a Subscriber. This stored procedure is executed at the Publisher on any database.

Topic link icon Transact-SQL Syntax Conventions

sp_getsubscriptiondtspackagename [ @publication = ] 'publication' 
    [ , [ @subscriber = ] 'subscriber' ]

[ @publication= ] 'publication'

Is the name of the publication. 'publication' is sysname, with no default.

[ @subscriber=] 'subscriber'

Is the name of the Subscriber. subscriber is sysname, with a default of NULL.

0 (success) or 1 (failure)

Column name

Data type




The name of the DTS package.

sp_getsubscriptiondtspackagename is used in snapshot replication and transactional replication.

Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_getsubscriptiondtspackagename.

Community Additions

© 2015 Microsoft