Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSrepl_helplogreader_agent

  No additional text.


Syntax
CREATE PROCEDURE sys.sp_MSrepl_helplogreader_agent
(
	@publisher			sysname,
	@publisher_type 	sysname
)
AS
BEGIN
	SET NOCOUNT ON

	DECLARE @retcode			int,
			@procedure			nvarchar(4000),
			@distributor_rpc	sysname,
			@distribution_db	sysname,
			@publisher_db		sysname
	
	-- Security Check
	EXEC @retcode = sys.sp_MSreplcheck_publish
	IF @@ERROR <> 0 OR @retcode <> 0
		RETURN 1
	
	-- defaults
	SELECT @publisher_db 	= DB_NAME(),
			@publisher		= ISNULL(@publisher, publishingservername())

	-- must be tran published or we exit with no resultset
	IF sys.fn_MSrepl_istranpublished(DB_NAME(),1) <> 1
	BEGIN
		RETURN 0
	END

	-- retrieve the distribution database name			
	EXEC @retcode = sys.sp_helpdistributor @rpcsrvname = @distributor_rpc OUTPUT,
											@distribdb = @distribution_db OUTPUT,
											@publisher = @publisher
	IF @@error <> 0 or @retcode <> 0 or @distribution_db is NULL
	BEGIN
		-- "The Distributor has not been installed correctly."
		RAISERROR(20036, 16, -1)
		RETURN 1
	END

	-- Retrieve the Log Reader agent information
	SELECT @procedure = QUOTENAME(RTRIM(@distributor_rpc)) + '.' + QUOTENAME(RTRIM(@distribution_db)) + '.sys.sp_MShelplogreader_agent'	

	EXEC @retcode = @procedure @publisher = @publisher,
									@publisher_db = @publisher_db
		IF @@ERROR <> 0 or @retcode <> 0
			RETURN 1

	RETURN 0
END

 
Last revision 2008RTM
See also

  sp_helplogreader_agent (Procedure)
sp_MSdrop_repltran (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