What is a cursor in SQL Server 2000 and their types?
Answer Posted / kokila
When will be use cursor need to perform following steps:-
1. DECLARE CURSOR
2. OPEN
3. FETCH
4. @@FETCH_STATUS
5. CLOSE
6. DEALLOCATE
1.DECLARE cursor_name CURSOR FOR SELECT_statement;
2.OPEN cursor_name;
3.FETCH cursor_name INTO variable list;
5.CLOSE cursor_name;
6.DEALLOCATE cursor_name;
Cursor is the current position of recordset.There are 4
types of cursors.
1.forward Only (Default)
2.Static
3.Keyset
4.Dynamic
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
what are the different stages of Report Processing?
What are system databases into sql server (2005/2008) : sql server database administration
Tell me what is normalization? Explain different forms of normalization?
Suggest a method of joining two tables.
Comment,Datatypes are unlimited
What does the update command do?
What is t-sql script to take database offline – take database online.
How use inner join in sql server?
What is the difference between cartesian product and cross join?
Can We Use Data-grids For Our Report In Ssrs?
Tell me about normalization in DBMS.
How can I change procedure name in sql server?
How to return the top 5 rows from a select query in ms sql server?
what are the important architecture components of SSRS?
How to create indexed view?