sp_addsubscription |
Ajout d'un abonnement |
---|---|
SQL Server |
Syntaxe
sp_addsubscription [ @publication = ] 'publication' [ , [ @article = ] 'article'] [ , [ @subscriber = ] 'subscriber' ] [ , [ @destination_db = ] 'destination_db' ] [ , [ @sync_type = ] 'sync_type' ] [ , [ @status = ] 'status' [ , [ @subscription_type = ] 'subscription_type' ] [ , [ @update_mode = ] 'update_mode' ] [ , [ @loopback_detection = ] 'loopback_detection' ] [ , [ @frequency_type = ] frequency_type ] [ , [ @frequency_interval = ] frequency_interval ] [ , [ @frequency_relative_interval = ] frequency_relative_interval ] [ , [ @frequency_recurrence_factor = ] frequency_recurrence_factor ] [ , [ @frequency_subday = ] frequency_subday ] [ , [ @frequency_subday_interval = ] frequency_subday_interval ] [ , [ @active_start_time_of_day = ] active_start_time_of_day ] [ , [ @active_end_time_of_day = ] active_end_time_of_day ] [ , [ @active_start_date = ] active_start_date ] [ , [ @active_end_date = ] active_end_date ] [ , [ @optional_command_line = ] 'optional_command_line' ] [ , [ @reserved = ] 'reserved' ] [ , [ @enabled_for_syncmgr= ] 'enabled_for_syncmgr' ] [ , [ @offloadagent= ] remote_agent_activation] [ , [ @offloadserver= ] 'remote_agent_server_name' ] [ , [ @dts_package_name= ] 'dts_package_name' ] [ , [ @dts_package_password= ] 'dts_package_password' ] [ , [ @dts_package_location= ] 'dts_package_location' ] [ , [ @distribution_job_name= ] 'distribution_job_name' ] [ , [ @publisher = ] 'publisher' ] [ , [ @backupdevicetype = ] 'backupdevicetype' ] [ , [ @backupdevicename = ] 'backupdevicename' ] [ , [ @mediapassword = ] 'mediapassword' ] [ , [ @password = ] 'password' ] [ , [ @fileidhint = ] fileidhint ] [ , [ @unload = ] unload ] [ , [ @subscriptionlsn = ] subscriptionlsn ] [ , [ @subscriptionstreams = ] subscriptionstreams ] [ , [ @subscriber_type = ] subscriber_type ] [ , [ @memory_optimized = ] memory_optimized ] |
Description
Cette Stored Procedure permet d'ajouter un abonnement à une publication et définit l'état Subscriber. Cette STORED PROCEDURE est exécutée au niveau du Publisher sur la base de données de publication.
Dernière mise à jour : Dimanche, le 29 Août 2021