Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Databases Programming Interviews:BtrieveClipperData ModelingData StructuresDatabase AdministrationDatabase Administrator (DBA)Database AnalystDatabase DeveloperDB DevelopmentEDI/Data Integration ExpertFirebirdHierarchicalIBM DB2InformixJava DatabaseMariaDBMicrosoft Access DeveloperMongoDBMS SQL ServerMySQL ProgrammingNetworkNoSQLObject RelationalPostgrePostgreSQLProgressRDBMSRelationalSQLSQL AdministratorSQL and PL/SQLSQL Notification ServicesSQL server 2008SSRSStored ProcedureSybaseTeradata
Copyright © 2018. All Rights Reserved
MS SQL Server Interview Question:
What Are Cursors in MS SQL Server?
Submitted by: AdministratorA cursor is a special data type that represents a result set returned by a SELECT query statement. There are several notes about cursor you need to remember:
* Cursor data type can not be used to define table columns.
* Cursor data type is used on store procedures, functions, and triggers to help you loop through result sets returned by queries.
* Cursor data type can be used to define cursor variables.
* There are special Transact-SQL statements dedicated to work with cursors variables: OPEN, FETCH, CLOSE, and DEALLOCATE.
* Cursor variables can be passed as procedure or function parameters.
* There is a special function, CURSOR_STATUS(), for check cursor statuses.
Submitted by: Administrator
* Cursor data type can not be used to define table columns.
* Cursor data type is used on store procedures, functions, and triggers to help you loop through result sets returned by queries.
* Cursor data type can be used to define cursor variables.
* There are special Transact-SQL statements dedicated to work with cursors variables: OPEN, FETCH, CLOSE, and DEALLOCATE.
* Cursor variables can be passed as procedure or function parameters.
* There is a special function, CURSOR_STATUS(), for check cursor statuses.
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.