Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

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
	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,

	RETURN (@retcode)

Last revision 2008RTM
See also

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


  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash