May 21, 2012

sp_MSinsertlightweightschemachange (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_MSinsertlightweightschemachange(uniqueidentifier @pubid
, int @schemaversion
, uniqueidentifier @schemaguid)

MetaData:

 create procedure sys.sp_MSinsertlightweightschemachange  
@pubid uniqueidentifier,
@schemaversion int,
@schemaguid uniqueidentifier
as
set nocount on
declare @retcode int

-- security check
exec @retcode = sys.sp_MSreplcheck_subscribe
if @retcode <> 0 or @@error <> 0 return 1


update dbo.sysmergesubscriptions
set schemaversion= @schemaversion,
schemaguid= @schemaguid
where pubid = @pubid and
(schemaversion < @schemaversion or schemaversion is null)
if @@error <> 0 return 1

return 0

No comments:

Post a Comment

Total Pageviews