Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sp_dropdynamicsnapshot_job (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).

Removes a filtered data snapshot job for a publication with parameterized row filters. This stored procedure is executed at the Publisher on the publication database. When the job is deleted, all of the related data is deleted from the MSdynamicsnapshotjobs system table.

Topic link icon Transact-SQL Syntax Conventions

sp_dropdynamicsnapshot_job [ @publication = ] 'publication' 
    [ , [ @dynamic_snapshot_jobname = ] 'dynamic_snapshot_jobname' ] 
    [ , [ @dynamic_snapshot_jobid = ] 'dynamic_snapshot_jobid' ] 
    [ , [ @ignore_distributor =] ignore_distributor ]

[ @publication=] 'publication'

Is the name of the publication from which the filtered data snapshot job is being removed. publication is sysname, with no default.

[ @dynamic_snapshot_jobname= ] 'dynamic_snapshot_jobname'

Is the name of the filtered data snapshot job being removed. dynamic_snapshot_jobnameis sysname, and if it is not supplied defaults to whatever job name is associated with dynamic_snapshot_jobid.

[ @dynamic_snapshot_jobid= ] 'dynamic_snapshot_jobid'

Is an identifier for the filtered data snapshot job being removed. dynamic_snapshot_jobidis uniqueidentifier, with default of NULL.

Important note Important

Only dynamic_snapshot_jobidor dynamic_snapshot_jobname can be specified. If values are not supplied for either dynamic_snapshot_jobidor dynamic_snapshot_jobname, all dynamic snapshot jobs for the publication are removed.

[ @ignore_distributor =] ignore_distributor

ignore_distributor is bit, with a default of 0. This parameter can be used to drop a dynamic snapshot job without doing cleanup tasks at the Distributor.

0 (success) or 1 (failure)

sp_dropdynamicsnapshot is used in merge replication.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft