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

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -