Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Is "with (nolock)" a good thing?

$
0
0

I've got an application that generates a report using Crystal Reports 9. It is timing out when it runs queries against the SQL Server. At this time I am trying to determine which query is causing this behavior. The time outs occur sometimes to some users. I attempted to duplicate this behavior but the report generated in a timely fashion without any delay.

One option that has been suggested is to add the "with (nolock)" directive to the queries, but I am not sure if this should be done so liberally. What do you all think about "with (nolock)"? Any other suggestion how I can narrow down the possible causes for the time outs? Thank you! Saga


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>