Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.89 KB

sp-getsubscriptiondtspackagename-transact-sql.md

File metadata and controls

62 lines (44 loc) · 1.89 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_getsubscriptiondtspackagename (Transact-SQL)
Returns the name of the Data Transformation Services (DTS) package used to transform data before sending them to a Subscriber.
markingmyname
maghan
randolphwest
07/16/2024
sql
replication
reference
sp_getsubscriptiondtspackagename
sp_getsubscriptiondtspackagename_TSQL
sp_getsubscriptiondtspackagename
TSQL

sp_getsubscriptiondtspackagename (Transact-SQL)

[!INCLUDE SQL Server]

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.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

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

Arguments

[ @publication = ] N'publication'

The name of the publication. @publication is sysname, with no default.

[ @subscriber = ] N'subscriber'

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

Return code values

0 (success) or 1 (failure).

Result set

Column name Data type Description
new_package_name sysname The name of the DTS package.

Remarks

sp_getsubscriptiondtspackagename is used in snapshot replication and transactional replication.

Permissions

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