Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

EXEC %%

$
0
0
Hello,In some "system" sp, I noticed that sometimes there is this type of syntax :[code="sql"]EXEC %%Object(...)...EXEC %%TriggerEx(...)...[/code]I would like to know what this type of command mean and how I can run/test/reuse in SSMS (if possible or is there an other solution)?for exemple in the "undocumented" sp [sys].[sp_MS_marksystemobject] (but also in others)[code="sql"]EXEC %%Object( Owner = @owner, Name = @object ).SetSystem()EXEC %%TriggerEx(MultiName = @objname).ValidateAndSetSystem(ID = @objid, NameSpaceClass = @ns)[/code]thank you

Viewing all articles
Browse latest Browse all 3145

Trending Articles