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.
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
Any help will me much appreciated...