• Jeffrey Williams (8/5/2008)


    You would do this:

    Execute sp_MS_marksystemobject sp_mytest;

    And that should setup the procedure so it runs in the context of the database where it is executed.

    Very nice, Jeffrey! I have been wondering about this for a while...

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]