Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an SQLSERVER 2008 having more than 1000 lines of code.

I have to find out all the objects (Tables/Views) in the SP which does not have WITH (NOLOCK) statement in it. Is there an easier way to find all such objects
and add the WITH (NOLOCK) statement preferably using wildcard/regular expression from the SQLServer Management Studio.


Thanks..
Posted
Updated 28-Feb-13 19:10pm
v2
Comments
Richard C Bishop 28-Feb-13 17:34pm    
RedGate offers a great plugin for MS SQL Server. You can search all the databases and everything in them.

1 solution

Ra why not just set the transaction isolation level to READ UNCOMMITTED -

if that behaviour is really what's required?

Thanks
Sujeet
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900