Home All Groups Group Topic Archive Search About

altering stored procedures as a batch

Author
15 Jul 2005 3:12 PM
jason
is there a way to alter stored procedures as part of a batch? for
example if i want to change the name of a parameter, or field that
appears in many stored procedures, is there a batch method i can use to
essentially 'find and replace' the old value with the new value?

thanks for any help,

jason

Author
15 Jul 2005 3:34 PM
David Browne
"jason" <iae***@yahoo.com> wrote in message
news:1121440378.255739.129510@g49g2000cwa.googlegroups.com...
> is there a way to alter stored procedures as part of a batch? for
> example if i want to change the name of a parameter, or field that
> appears in many stored procedures, is there a batch method i can use to
> essentially 'find and replace' the old value with the new value?
>

Yes.  Use EM to script all of the affected procedures.  Then use a text
editor to search and replace and otherwise fix up the script.  Then run the
script.

David
Author
15 Jul 2005 4:01 PM
jason
ahh, so simple. thanks

AddThis Social Bookmark Button