Disadvantages of cursor

Disadvantages of cursor.

- Cursor manipulates records row by row.

- It requires temporary storage for row manipulation.

- Thus manipulating a row using a cursor is costly affair since it consumes extra resource.

- Fetch record row by row means server roundtrip that consumes network recourses.

- Cursor requires a network roundtrip each time it fetches a record, thus consume network resources.

- While data processing, it issues locks on part of the table, or on the whole table.

- It uses more resources because each time you fetch a row from the cursor, it results in a network roundtrip.

- There are restrictions on the SELECT statements that can be used.

- Performance and speed is slow because of the round trips.
What is LOG Shipping?
This process synchronizes two SQL servers and thus provides ready server in case one fails........
What are the different types of Locks?
Shared Lock: Shared locks are used for operations that read data, such as a SELECT statement. During Shared locks used, concurrent transactions can read a resource, but cannot modify the data.......
What is Extent and types of Extent?
An extent is 8 continuous pages to hold server object. Uniform extents - This type of extent contains data from one table.......
Post your comment