ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
What are cursors? Name four types of cursors and when each
one would be applied?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are cursors? Name four types of cursors and when each one would be applied?
Answer
# 1
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 ?    12 Yes 4 No
SreyasMN
[Astro Vision Future Tech Pvt Ltd]
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What does the INSTEAD OF trigger do?  3
how to retrive only second row from table in sql server 2000? CTS7
what is the order of execution of where,having,group by in select stement Tanla-Solutions5
What is lock escalation?  1
what is the diffrence between Snap Shot and Transaction Replication CSC1
I have to display ten columns values from diffrent ten tables. how many joins are require? HCL8
There is table like Events...in that name ,startdate ,enddate,location are the column names write a stored Procedure for this table to get events by Months "GetEventsByMonths"  1
i want to create procedure for create table in sql server 2005 for example create procedure create_table @table varchar(20) as create @table( id int, name char(20) ) but it will get error what is solution? Aptech4
How to count the number of duplicate items in a table?  1
What is the difference between HAVING clause and the WHERE clause?  4
What is the difference between login and a user? TCS7
What is blocking and how would you troubleshoot it?  1
What is blocking and how would you troubleshoot it? HCL2
Can you link only other SQL Servers or any database servers such as Oracle?  1
hi i gone though satyam interview. what is Acid Properties? Satyam2
I have a table EMP in which the values will be like this EmpId Ename Sal DeptId 11 Ram 10000 10 11 Ram 10000 10 22 Raj 20000 20 22 Raj 20000 20 33 Anil 15000 30 33 Anil 15000 30 I want to delete only duplicate Rows. After Delete I want the output like this EmpId Ename Sal DeptId 11 Ram 10000 10 22 Raj 20000 20 33 Anil 15000 30 DELL10
How do you implement one-to-one, one-to-many and many-to- many relationships while designing tables? TCS3
How do we get month name in SQL Server 2000, Oracle, MS Access?  9
can foreign key take role of primary key? TCS4
WHY CAN WE CREATE ONLY ONE CLUSTERED INDEX ON A TABLE IN SQL SERVER?  6
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com