May 25, 2012

sp_MSreplraiserror (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_MSreplraiserror(int @errorid
, nvarchar @param1
, nvarchar @param2)

MetaData:

   
create procedure sys.sp_MSreplraiserror @errorid int, @param1 sysname = null, @param2 sysname= null
as
if @errorid = 20508 raiserror (20508, 11, 1)
else if @errorid = 20509 raiserror (20509, 16, 1)
else if @errorid = 20510 raiserror (20510, 16, 1)
else if @errorid = 20511 raiserror (20511, 16, 1)
else if @errorid = 20512 raiserror (20512, 16, 1)
else if @errorid = 20515 raiserror (20515, 16, 1)
else if @errorid = 20516 raiserror (20516, 16, 1)
else if @errorid = 20504 raiserror (20504, 16, 1)
else if @errorid = 20518 raiserror (20518, 16, 1)
else if @errorid = 20519 raiserror (20519, 16, 1)
else if @errorid = 20520 raiserror (20520, 16, 1)
else if @errorid = 21034 raiserror (21034, 16, 1)
else if @errorid = 21052 raiserror (21052, 16, 1)
else if @errorid = 21054 raiserror (21054, 16, 1)
else if @errorid = 21064 raiserror (21064, 16, 1)
else if @errorid = 21161 raiserror (21161, 16, 1)
else if @errorid = 20598 raiserror (20598, 16, 1)

No comments:

Post a Comment

Total Pageviews