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
Can group by and orderby be used together?
What objects does the fn_my_permissions function reports on? : sql server security
What is sql server used for?
How to retrieve error messages using odbc_errormsg()?
Why are sql functions used?
what are the reporting service components in SSRS?
How do I schedule a sql server profiler trace?
What is “asynchronous” communication in sql server service broker?
What are distributed partitioned views?
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
What are number line correlation administrators will use while working with a subquery?
What is the concept of optimization?
Write SQL queries on Self Join and Inner Join.
Hi, I Created 3 Tables Person(PersID[prkey],Name,Email,Password), Project(ProjName,ProjID[prkey],ProjLeader,ProjManager) & ProjectInvolvement(EntryDate,ProjID[frkey],PersID[frkey],ProjDuration). For this how can i INSERT,UPDATE & DELETE Through PROCEDURE? Please Post the Answer for me. Desai.
Explain the disadvantages of cursors?