April 17, 2012

sp_createtranpalrole (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_createtranpalrole(nvarchar @publication
, nvarchar @publisher)

MetaData:

 CREATE PROCEDURE sys.sp_createtranpalrole   
(
@publication sysname
,@publisher sysname = NULL -- for hrepl publications
)
AS
BEGIN
set nocount on
declare @retcode int

-- security check done in here
exec @retcode = sys.sp_createpalrole @publication = @publication, @mode = 1, @publisher = @publisher
if @@ERROR <> 0 or @retcode <> 0
return(1)
END

No comments:

Post a Comment

Total Pageviews