Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_ORArowcount

  No additional text.


Syntax


-- Name:
--          sp_ORArowcount

-- Description:
--          Record row count entry in HREPL events

-- Security:
--          Internal

-- Returns:
--          Success/failure

-- Owner:
--          

CREATE PROCEDURE sys.sp_ORArowcount
(
	@publisher			sysname,
	@owner				sysname,
	@table				sysname,
	@publicationid		int,
	@articleid			int,
	@command_type		int,
	@command			nvarchar(4000),
	@subscription_level	bit
)
AS
BEGIN
	declare @OracleCommand	nvarchar(4000),
			@retcode		int

	SET @retcode = 0

	SET NOCOUNT ON


	create table #hquery
	(
		seq	int identity(2,1),
		cmd	nvarchar(4000)
	)
	
	-- Build command
	INSERT INTO #hquery (cmd) VALUES (N'{call HREPL.RowCnt(')
	INSERT INTO #hquery (cmd) VALUES (QUOTENAME(@owner, '''') + N',')
	INSERT INTO #hquery (cmd) VALUES (QUOTENAME(@table, '''') + N',')
	INSERT INTO #hquery (cmd) VALUES (CONVERT(varchar(10),@publicationid) + N',')
	INSERT INTO #hquery (cmd) VALUES (CONVERT(varchar(10),@articleid) + N',')
	INSERT INTO #hquery (cmd) VALUES (CONVERT(varchar(10),@command_type) + N',')
	INSERT INTO #hquery (cmd) VALUES (sys.fn_replquotename(@command, '''') + N',')
	INSERT INTO #hquery (cmd) VALUES (CONVERT(nvarchar(10), @subscription_level) + N')}')
	EXEC @retcode = sys.sp_IHquery @publisher

	IF  (@@error <> 0 OR @retcode <> 0 )
	BEGIN
		RAISERROR (21651, 16, -1, 'RowCnt', @publisher)
    	RETURN (1)
	END
END

 
Last revision 2008RTM
See also

  sp_IHarticle_validation (Procedure)
sp_MSdrop_replcom (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