sql - How to find list of tables used in stored procedure without "With (nolock)" words -


i have large table data , each table need end statement (nolock) @ end , please me find in stored procedure.

example:

if store-procedure used 2 tables , b , 1 table b doesn't end (nolock) need return following details.

sp_name,table_name

if understand correctly, looking store procedure names have nolock keyword:

select routine_name, routine_definition     information_schema.routines      routine_definition '%nolock%'      , routine_type='procedure' 

Comments

Popular posts from this blog

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

Android M doze mode and "native" posix socket freezing up -