August 15, 2007 at 12:51 pm
Still don't need a cursor for that... but we get your point .
August 15, 2007 at 8:27 pm
And, breaking a set of millions of rows up into smaller sets still isn't RBAR...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2007 at 11:34 pm
See, if we have cursor in SQL Server then they must be of some use.
So it depends on the business / technical requirement and our capability of using a cursor. Using READ ONLY, FAST FORWARD cursors are not that bad.
And that’s the way to achieve any row-by-row operation. But still the usage should be minimal.
And you can find various best practices / optimization guidelines on the net but the main objective should be focused on these points.....
1. Reduce disk I/O
2. Reduce CPU / Memory utilization
3. Reduce network traffic
So we can at least start with basic stuff like this....
I will be posting one extensive list soon on my blog at http://mohitnayyar.blogspot.com/
Thanks
Mohit Nayyar
http://mohitnayyar.blogspot.com/
"If I am destined to fail, then I do have a purpose in my life, To fail my destiny"
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply