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 advantages of stored procedure in sql server?
How to set database to be read_only in ms sql server?
How to change server name in sql server?
What is partition, how will you implement it? : sql server analysis services, ssas
How would you use user_constraints table in DB?
What are the joins in sql server? : sql server database administration
What is transaction server isolation?
What is SQL Azure Fabric?
What is a result set object returned by odbc_exec()?
Explain the advantages of merge replication?
What is a table called, if it has neither cluster nor non-cluster index? What is it used for?
What do you mean by the term 'normalization'?
Tell me the difference between clustered and non-clustered index?
Why we use the openxml clause?
What is difference between count (*) and count 1?