Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Dirty Reads in Procedure

$
0
0

Hi All,

Please Let me know which one is better in terms of performance:-

1.If I am doing dirty Read many time in one procedure 

for example:- select column1 from table1 (nolock)where id = 5

2. Doing dirty read at one time and fetch all column which is needed and put into table variable

for Example:- select column1,column2 from table1 (nolock)where id = 5

and put all this in table variable 

which one is perform better?

I think 1st option is better because we are doing dirty read and nothing to impact searching data many time 

and we have shortage of ram also.

Thanks,


Viewing all articles
Browse latest Browse all 12963

Trending Articles



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