• Really good "Spackle", Brandie. Our shop enforces the 2 part naming convention for everything and we do 100% peer reviews before anything leaves Dev so we know to check for this even on auto-generated code but I know a lot of shops that don't. Since you'd expect that MS would generate bullet-proof code, this takes a lot of people by surprise because they don't check it before they promote it.

    MS also realizes that not all of the code the system generates is necessarily bullet-proof. That's why they issue a warning to check the scripts they gen for table modifications done in the design window of SSMS.

    Thanks for picking up the putty-knife on a good subject for the "Spackle" series!

    --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)