Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the integrity of the storedprocedures

We have a large database containing a lot of stored procedures. Now we are updating our database but some stored procedures still use the old structure. We've found most of them using 'sp_depends' but some sp's slipped through.

I was wondering if there isn't a way to check all stored procedures. If they call for a column that doesn't exist anymore you get an error.

Thx

like image 858
user29964 Avatar asked Dec 01 '25 05:12

user29964


1 Answers

I think if you want to be 100% certain then you may wish to use software designed for this exact purpose. For example, RedGate have a product called SQL Dependency Tracker.

http://www.red-gate.com/products/SQL_Dependency_tracker/index.htm

I would suggest downloading a free trial and testing the functionality.

like image 68
John Sansom Avatar answered Dec 04 '25 00:12

John Sansom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!