SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 diffrence between cursor and While loop
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

swathi3003
Starting Member

20 Posts

Posted - 04/23/2013 :  00:51:05  Show Profile  Reply with Quote
Hi all,


Can any one explain me What is the difference between Cursor and While Loop? I have read about two concepts but end up with confusion..Which one gives better performance??

bandi
Flowing Fount of Yak Knowledge

India
2168 Posts

Posted - 04/23/2013 :  00:59:36  Show Profile  Reply with Quote
That depends on the situation...
Refer this link once
http://www.techrepublic.com/blog/datacenter/comparing-cursor-vs-while-loop-performance-in-sql-server-2008/1741
http://www.techrepublic.com/blog/datacenter/avoiding-cursors-with-sql-server-2005/412

--
Chandu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000