Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_addpushsubscription_agent

  No additional text.


Syntax
CREATE PROCEDURE sys.sp_addpushsubscription_agent
(
	@publication					sysname,
	@subscriber 					sysname = NULL,
	@subscriber_db					sysname = NULL,
	@subscriber_security_mode		smallint = 1,
	@subscriber_login				sysname = NULL,
	@subscriber_password			sysname = NULL,
	@job_login						nvarchar(257) = NULL,
	@job_password					sysname = NULL,
	@job_name						sysname = NULL,
	@frequency_type 				int = 64,
	@frequency_interval 			int = 1,
	@frequency_relative_interval	int = 1,
	@frequency_recurrence_factor	int = 0,
	@frequency_subday				int = 4,
	@frequency_subday_interval		int = 5,
	@active_start_time_of_day		int = 0,
	@active_end_time_of_day 		int = 235959,
	@active_start_date				int = 0,
	@active_end_date				int = 99991231,
	@dts_package_name				sysname = NULL,
	@dts_package_password			sysname = NULL,
	@dts_package_location			nvarchar(12) = N'distributor',
	@enabled_for_syncmgr			nvarchar(5) = 'false',
	@distribution_job_name			sysname = NULL,
	@publisher						sysname = NULL,
	@subscriber_provider			sysname = NULL,
	@subscriber_datasrc				nvarchar(4000) = NULL,
	@subscriber_location			nvarchar(4000) = NULL,
	@subscriber_provider_string		nvarchar(4000) = NULL,
	@subscriber_catalog				sysname = NULL
)
AS
BEGIN
	DECLARE @cmd			nvarchar(4000)
	DECLARE @retcode		int
	DECLARE @publisher_type	sysname

	SET @retcode = 0
	
	EXEC @retcode = sys.sp_MSrepl_getpublisherinfo	@publisher		= @publisher,
													@rpcheader		= @cmd OUTPUT,
													@publisher_type = @publisher_type OUTPUT
	
	IF @retcode <> 0
		RETURN (@retcode)

	-- Add sp
	SET @publisher = UPPER(@publisher) COLLATE DATABASE_DEFAULT
	set @cmd = @cmd + N'sys.sp_MSrepl_addpushsubscription_agent'
	
	EXEC @retcode = @cmd @publication,
							@subscriber,
							@subscriber_db,
							@subscriber_security_mode,
							@subscriber_login,
							@subscriber_password,
							@job_login,
							@job_password,
							@job_name,
							@frequency_type,
							@frequency_interval,
							@frequency_relative_interval,
							@frequency_recurrence_factor,
							@frequency_subday,
							@frequency_subday_interval,
							@active_start_time_of_day,
							@active_end_time_of_day,
							@active_start_date,
							@active_end_date,
							@dts_package_name,
							@dts_package_password,
							@dts_package_location,
							@enabled_for_syncmgr,
							@distribution_job_name,
							@publisher,
							@publisher_type,
							@subscriber_provider,
							@subscriber_datasrc,
							@subscriber_location,
							@subscriber_provider_string,
							@subscriber_catalog

	RETURN (@retcode)
END

 
Last revision 2008RTM
See also

  sp_MSadd_distribution_agent (Procedure)
sp_MSdrop_repltran (Procedure)
sp_MSrepl_addpushsubscription_agent (Procedure)
sp_MSrepl_addsubscription (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash