Undocumented Stored Procedures?

  • What does it mean if Microsoft does not document a stored procedure?

    Does it mean they will get rid of it in future versions of their software?

  • No. Most undocumented procedures seem to live for awhile.

    It is really an indication that they may remove it, rename it, or change it without telling anyone. There have been some cases in which they have changed undocumented procedures with service packs and version upgrades.

    They are, however, are like any other software company and they tend to not change the footprint of a procedure or function often because they have to retest their own code that may be calling it.

    If you do use them, be prepared to re-test them with every service pack and version upgrade. Of course, if you write a procedure that selects data from system tables, you run the same risks.

  • Shoot... you can say the same thing for documented things, as well. For example, sp_MakeWebTask is very well documented but they changed the privs in 2k-sp4 so that you need system admin rights to do it. If you have code that doesn't use sysadmin privs... BOOM! And, I believe it goes away altogether in 2k8.

    By the way... sp_MSforEachTable and sp_MSForEachDB are nothing but big ol' fat cursors... you might be better off growing your own.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Thanks for the info, folks!

  • As another idea... if you want to be careful for support going forward you can script out the code in the undocumented stored procedure and then re-write your own procedure that follows the same basic logic they are using. Then you have less worry about it changing going forward.

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

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