Hi Folks,
I need to add some auditing to a clients database. The sp's to actually do the audit are no problem. However, I need to insert the calls to the audit procs into every stored proc in their database and there are over 300!!!
In addition, I'll need to be able to remove the audit calls on demand too!
So, what I'm asking is does anyone know how to script inserting a line into every sp on the db and subsequently remove it?
I need to add some auditing to a clients database. The sp's to actually do the audit are no problem. However, I need to insert the calls to the audit procs into every stored proc in their database and there are over 300!!!
In addition, I'll need to be able to remove the audit calls on demand too!
So, what I'm asking is does anyone know how to script inserting a line into every sp on the db and subsequently remove it?