exec %% what is this ??

  • Hi

    There are a few system procedures in which i found the following exec statement

    EXEC %%ScalarType(ID = @xusertype).SetName(Name = @newname)

    Does anyone know what the %% after the exec is used for ?

    Thanks

    J

  • It is an internal procedure call. Most likely associated with sys.sp_rename. Refer this

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • Yes , i saw the usage in sp_rename however I wanted to know the difference between a simple EXEC vs a EXEC %%

  • Are you thinking that EXEC %% is a different command? It's not. It's the same EXEC.

    What is different is %%xxx. These are undocumented and meant for internal use by Microsoft.

  • Hi

    I am sure they are undocumented commands however i feel the usage is not the same as the exec statement used in Procedure calls. infact if u look at the command in sp_rename you will see the parameter input resembles something u wud see in C# coding than SQL.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply