June 6, 2012

sp_publicationsummary (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_publicationsummary(nvarchar @publication
, nvarchar @publisher)

MetaData:

   
CREATE PROCEDURE sys.sp_publicationsummary
(
@publication sysname,
@publisher sysname = NULL
)
AS
BEGIN
DECLARE @cmd nvarchar(4000),
@retcode int,
@publisher_type sysname

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

IF @retcode <> 0
BEGIN
RETURN (@retcode)
END

select @publisher = UPPER(@publisher)
,@cmd = @cmd + N'sys.sp_MSrepl_publicationsummary'

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

RETURN (@retcode)
END

No comments:

Post a Comment

Total Pageviews