what is curser.

Answer Posted / pawan mothsra

Cursor is a entity in database which is used to fetch data
from database by application by row by row.

Cursor is mainly used for calculation on data on basis of
row by row and you can do transection on another table with
this data row by row basis.

You can use cursor by :-

1.Declare a Cursor
2.OPEN Cursor
3.FETCH and FETCH NEXT Statement
4.CLOSE Cursor
5. Deallocate Cursor

You can take help for .Net, C#, Sql Server, VB.Net Articles
and Interview Questions
("http://www.developerchoice.com")
<a href="http://www.developerchoice.com">DeveloperChoice</a>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I partition a table in sql server?

713


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

779


What is difference between join and natural join?

647


How do you rename a table in sql server?

644


What is use of attribute hierarchy optimized state? : sql server analysis services, ssas

766






What is self contained sub query?

754


What is the difference between truncate and delete commands?

740


Can you explain full-text query in sql server?

761


What is merge replication?

863


Tell me the difference between clustered and non-clustered index?

682


What is the use of stored procedure?

662


What type of Index will get created after executing the above statement?

843


What is the purpose of the model database?

753


What is SQL Azure Federations?

106


Can sql server 2016 run on windows 7?

678