Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are cursors? Name four types of cursors and when each
one would be applied?

Answer Posted / sreyasmn

Cursors can be either updateable or non-updateable. If you
only need to display information and not diddle with it,
the non-updateable is the fastest. The provider simply
passes you the data and forgets about it! There is no need
to keep tabs on the data to see if it has been changed.
Therefore, this is the fastest cursor to use.



Cursor type

Static cursor. This is the one to use for generating
reports or finding data. Additions, changes, or deletions
by other users are not visible

Forward-only cursor. This is the default. It is identical
to the Static except that you can only scroll forward. The
fastest cursor this side of the Pecos Mountains.

Dynamic cursor. Additions and deletions by others are
visible. All movement is supported. But some providers
don't support this cursor type.

Keyset-driven cursor. This is similar to a Dynamic cursor
except you can't see records others add. If another user
deletes a record, it is inaccessible from your recordset

Is This Answer Correct ?    46 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the new features of sql server 2012 reporting service?

141


Can we add a cpu to sql server?

1067


Difference between aggregate functions of sql?

1149


What is a with(nolock)?

1027


What is the name of reporting services config file and what’s it’s used for?

153


How do I start sql server?

1030


Tell me about normalization in DBMS.

1064


What is the significance of master, tempdb and model databases?

1133


What are approximate numeric data types in ms sql server?

1105


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

1017


Where sql server user names and passwords are stored in sql server? : sql server database administration

1106


How many types of dimensions are there and what are they? : sql server analysis services, ssas

1124


Difference between group by clause and having clause in SQL?

1030


What is the maximum rows in sql server table?

964


What is store procedure? How do they work? When do you use?

1000