From: AlexS on
EXEC %%ErrorMessage(ID = @msgnum).SetSeverity(Severity = @severity)



Is that some kind of internal call to CLR class inside MS SQL? I can't find
definition for %%ErrorMessage - what kind of object is it?



Thx


From: Aaron Bertrand [SQL Server MVP] on
Yes, this is internal stuff... the first such thing I found was in
sp_rename:

EXEC %%ScalarType(MultiName = @SchemaAndTypeName).LockMatchID(ID =
@xusertype, Exclusive = 1)

--
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006




"AlexS" <salexru2000NO(a)SPAMrogers.comPLEASE> wrote in message
news:uEWnrLTqHHA.1208(a)TK2MSFTNGP02.phx.gbl...
> EXEC %%ErrorMessage(ID = @msgnum).SetSeverity(Severity = @severity)
>
>
>
> Is that some kind of internal call to CLR class inside MS SQL? I can't
> find definition for %%ErrorMessage - what kind of object is it?
>
>
>
> Thx
>
>