What is a cursor in SQL Server 2000 and their types?
Answer Posted / lekhraj deshmukh
Cursor:-Cursor is used for fetching the ror by row data from
tables.
Note:-Cursor is the only datatypa that can not be used in
table creation.
When will be use cursor need to perform following steps:-
1)decalere a cursor
2) open a cursor
3)fetch the cursor
4)close the cursor
5)deallocate the cursor
Types of cursor:-
1)API cursor
2)client cursor
3)sql server cursor
| Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
How many types of built in functions are there in sql server 2012?
what's the difference between a primary key and a unique key? : Sql server database administration
How to sort the query output with order by clauses in ms sql server?
you accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover? : Sql server administration
What do you mean by an execution plan?
What is normalization? Explain different forms of normalization?
What are different types of database indexes?
This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?
How to backup encryption key ?
Explain the disadvantages/limitation of the cursor?
You want to use a perspective in an mdx query. How do you select the perspective?
How can you stop stored procedures from recompiling?
What is normalization and denormalization in sql server?
Explain what is the main purpose of having conversation group?
What are the different types of columns types constraints in the sql server?