Buy Questpond's video subscriptions on
huge discount
.
Online: 9735
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
Sql Server
>
Loading ...
What is cursors?where we need?and advantages
Posted by
Sheeba
under
Sql Server
on 12/3/2010 |
Points: 10
| Views : 11622 | Status :
[Member]
| Replies : 3
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi
What is cursors? where we need? what are all the advantages?
examples plz
Thanks
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Raja
on: 12/3/2010
[Member]
Starter
|
Points: 25
0
Please go through this thread
http://www.dotnetfunda.com/forums/thread673-cursor-in-sql-server.aspx
The better overview about cursor is given at
http://www.sqlteam.com/article/cursors-an-overview
In summary Cursor is a mechanism to iterate through collection of data in sql server, however please note that cursor is very slow. In the latest version of SQL server you can use CTE and other mechanism to achieve the same thing. So ideally we should not talk about its advantages ;).
Read the SQLTeam link and you will know about Cursor better.
Thanks
Regards,
Raja, USA
Sheeba
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
T.saravanan
on: 12/3/2010
[Member]
[MVP]
Silver
|
Points: 25
0
Hi Sheeba,
Refer those links...
http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/
http://www.mssqltips.com/tip.asp?tip=1599
If you using Cursor in Stored Procedure means performance level its very slow compare to normal while loop.
Thanks,
T.Saravanan
Sheeba
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Sivaprasadadiraju
on: 12/4/2010
[Member]
Starter
|
Points: 25
0
Hi
http://techrepublic.com.com/5208-6230-0.html?forumID=101&threadID=204486&start=0
http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/
Cursor is going to use when row by row operations has to be done. it will work like loop. it is not good to use
you can use for or while loop instead of cursor
Regards,
Siva Prasad Adiraju
SIVA PRASAD ADIRAJU
Sheeba
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...