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 |
What is the bookmark lookup and rid lookup?
What are the main differences between #temp tables and @table variables and which one is preferred?
How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?
What is the maximum number of instances in 32 bit and 64 bit sql server 2012?
How to trouble shoot if unable to connect SQL Server
can you any body tell me simple recovery,full recovery,bulk logged recovery where can use?
How to add additional conditions in SQL?
How to loop through result set objects using odbc_fetch_row()?
What is log shipping? Can we do logshipping with SQL Server 7.0 ?
What happens if date-only values are provided as date and time literals?
What is the difference between implicit and explicit transaction?
What are the tool windows in sql server management studio? : sql server management studio