• A long time ago I came across an sp called sp_select on the old site. I have since taken that sp and modified it, munged it so that now I have sp_select, sp_insert, sp_insertselect, and sp_declare. Since I rarely need to do deletes and most updates are pretty specific I never really used the helper sp for them. If I get a chance I will upload them. And yes, I too put the comma at the front. My sp_declare will use UDT's if they exist (I hate those things!) as well.

    Basically with the above sprocs I could nearly have the database spit out a sproc for doing selects on a table

    Also, it would be very simple to modify the sp_declare I have to show the field is an identity.

    Gary Johnson
    Sr Database Engineer