what is cursor?why we will go to cursor?advantages &disadvantages of cursors?
Answer / ramya gurrala
Cursor is a pointer(in c/java).Cursor work with DML and information can be accessed.
Cursor is required to process each row individually for queries which return multiple rows.
Advantages:1)We can do operations on each row.
2)Response time is good.
3)Cursors are faster than the while loop.
Disadvantages:1)Repeated network round trips.
2)Occupies more resources and temporary storage.
Is This Answer Correct ? | 1 Yes | 0 No |
How can I enforce to use particular index?
can you tell me some sites name for sql server 2000 commands with example??? plz reply soon.
What are key constraints?
What authentication modes does sql server support?
What is Self Join?
In which files does sql server actually store data?
Why we use the openxml clause?
How to check table values in sql server?
How sql server executes a statement with nested subqueries?
What is difference between clustered and non clustered index?
between cast and convert which function would you prefer and why?
What are the advantages of using stored procedures? Please don't simply say compilation time will be saved as they are already complied. Please specify some other advantages.