I have more than 1000 Stored procedures, due to some dirty programmers they would have used 'nolock' for stored procedure tables.
Now i am facing lots and lots of issues due to this issue in daily basics.
For some reasons i cant remove all the nolock key words from SP but i need to know in which stored procedure it occurs along with table name.
Example:
Let us consider a store-procedure(sp_user) used two tables (tbl_salary) and (tbl_account) and if one table (tbl_account) end with (NOLOCK) then i need to return following details.
**S.N SP_Name Table_name**
1 sp_user tbl_account
I don't need Stored procedure name,i know that it can be get optained using routine_definition like clause, i need the table name only.
Any help will me much appreciated...