Advantages and Disadvantages of Cursor?
Answers were Sorted based on User's Feedback
Answer / vivekanand
Merits: Row by Row Validations, good choice for small set of records
De-Merits: it Increases Network Traffic, result to slowdown the Speed and Performance of the Database,
Consumes More Resources, bad choice for large set of records.
Cheers,Vivekanand
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sandeep singh
Advantages:
Cursors are somewhat like Pointers of Oracle, Oracle executes a query and assign some name to that memory location, which is known as Cursor.
Cursors are used for storing data temperarorily.
Cursors are used for storing, managing and retrieving data.
Cursors stores in the RAM so the data access and retrieval is fast.
Disadvantage:
No such disadvantage. Only thing is that rather than storing data in an intermediate variable and fetching it one by one via cursor and then processing it sequentially, we can use Collections. By using collections, we can pass the bundle of Data at once.
Is This Answer Correct ? | 2 Yes | 0 No |
as per my Knowledge cursor is data type which is used to
define multivalue variable.if u take int a ,here a is
static variable which hold only one value at a time.in some
situvations we need data type variable which hold
multivalues
if any one find new answer ,send me
nag.mca08@gmail.com
Is This Answer Correct ? | 28 Yes | 89 No |
Explain transaction server consistency?
What is the use of SCOPE_IDENTITY() function?
Does sql server use t sql?
Is it possible to have clustered index on separate drive from original table location?
Where are sql server usernames and passwords stored in the sql server?
Explain trigger classes i.e. Instead of and after trigger?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
Is it safe to delete log files?
What are Sql Reporting Services and analysis services? Can u Explain
What information is maintained within the msdb database?
What is filestream?
Tell me what do you mean by an execution plan? Why is it used? How would you view it?