April 22, 2012

sp_enumfullsubscribers (Transact-SQL MetaData) Definition

Please note: that the following source code is provided and copyrighted by Microsoft and is for educational purpose only.
The meta data is from an SQL 2012 Server.

I have posted alot more, find the whole list here.

Goto Definition or MetaData

Definition:

sys.sp_enumfullsubscribers(nvarchar @publication
, nvarchar @publisher)

MetaData:

   
create procedure sys.sp_enumfullsubscribers
(
@publication sysname = '%',
@publisher 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_enumfullsubscribers'

EXEC @retcode = @cmd
@publication,
@publisher,
@publisher_type

RETURN (@retcode)
END

--
-- Name: sp_MSrepl_enumfullsubscribers
--
-- Descriptions:
--
-- Parameters: as defined in create statement
--
-- Returns: 0 - success
-- 1 - Otherwise
--
-- Security: Public - publish check
-- Requires Certificate signature for catalog access
--
raiserror(15339,-1,-1,'sp_MSrepl_enumfullsubscribers')

No comments:

Post a Comment

Total Pageviews