recompiled grouped procedure

  • when a procedure from a grup is recompiled.

    suppose i have

    create proc dbo.x

    as

    if cond dosome

    else doalt

    and i want to do something like

    create proc dbo.x;2

    as dosome

     

    create proc dbo.x;3

    as doalt

     and  create proc dbo.x;1

    x int=1

    as

    case x when 2 then exec dbo.x;2

    else exec dbo.x;3

     

  • It will compile the first time and that is all.

Viewing 2 posts - 1 through 1 (of 1 total)

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