Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_ORAmarksubscriptionvalidation

  No additional text.


Syntax


-- Name:
--          sp_ORAmarksubscriptionvalidation

-- Description:
--          Record subscription marker into HREPL events

-- Security:
--          

-- Returns:
--          

-- Owner:
--          

CREATE PROCEDURE sys.sp_ORAmarksubscriptionvalidation
(
	@publicationid	int,
	@articleid		int,
	@command_type	int,
	@command		varchar(4096),
	@publisher		sysname
)
AS
BEGIN
	DECLARE @retcode int

	SET @retcode = 0
	SET NOCOUNT ON

	-- Define sp_IHquery support table
	create table #hquery
	(
		seq	int identity(2,1),
		cmd	nvarchar(4000)
	)
	
	-- Mark subscription
	INSERT INTO #hquery (cmd) VALUES (N'{call HREPL.MarkSubscription(')
	INSERT INTO #hquery (cmd) VALUES (CONVERT(NVARCHAR(10), @publicationid) + N',')
	INSERT INTO #hquery (cmd) VALUES (CONVERT(NVARCHAR(10), @articleid) + N',')
	INSERT INTO #hquery (cmd) VALUES (CONVERT(NVARCHAR(10), @command_type) + N',')
	INSERT INTO #hquery (cmd) VALUES (sys.fn_replquotename(@command, '''') + N')}')

	EXEC @retcode = sys.sp_IHquery @publisher
	IF  (@@error <> 0 OR @retcode <> 0 )
	BEGIN
		RAISERROR (21651, 16, -1, 'MarkSubscription', @publisher)
    	RETURN (1)
	END
END

 
Last revision 2008RTM
See also

  sp_IHmarksubscriptionvalidation (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