April 30, 2012

sp_helpsubscriberinfo (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_helpsubscriberinfo(nvarchar @subscriber
, nvarchar @publisher)

MetaData:

   
create procedure sys.sp_helpsubscriberinfo
(
@subscriber sysname = '%',
@publisher sysname = null
)
AS
BEGIN
DECLARE @cmd nvarchar(4000)
DECLARE @retcode int

SET @retcode = 0

EXEC @retcode = sys.sp_MSrepl_getpublisherinfo @publisher = @publisher,
@rpcheader = @cmd OUTPUT,
@skipSecurityCheck = 1

IF @retcode <> 0
RETURN (@retcode)

IF @publisher IS NULL
SET @publisher = publishingservername()

-- Add sp
SET @publisher = UPPER(@publisher) COLLATE DATABASE_DEFAULT
set @cmd = @cmd + N'sys.sp_MSrepl_helpsubscriberinfo'

EXEC @retcode = @cmd
@subscriber,
@publisher,
NULL

RETURN (@retcode)
END

No comments:

Post a Comment

Total Pageviews