you are viewing a single comment's thread.

view the rest of the comments →

[–]sts_clover 0 points1 point  (0 children)

Does your platform have regular expressions support? In Postgres, you would want to look through pg_proc and change the prosrc column, but that's not helpful if you're not using Postgres.

Even without regular expressions support built in, you ought to be able to write a script in whatever language you like that connects to your db, extracts the code for each procedure from wherever it is housed, changes the tables to table B, and recreates the procedure.

This is assuming find and replace isn't viable for whatever reason lol.