Modify sp in batch

  • HI, I face a task to edit definition for bunch of sp: cleaning <IF EXISTS THEN DROP> and changing CREATE for ALTER.

    Do you think there is a good way to do it in batch and take original source from system.tables (even we have this as physical file in VSS)?

    Surely enough <IF Exists then drop> is not uniformed, could be variations with syntax and on diff number of lines, IF Exists... vs OBJECT_ID is not null etc...

    CREATE__sp_PROCEDUREA vs CREATE_spPROcedure (with diff spacing).

    Thanks Mario

Viewing 0 posts

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