Cursor Functions In SQL Server
What is Cursor function in SQL Server and why is it used ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Jul 10, 2023, 9:37 AM
Hi Surrbhi,
Cursor is a database object to retrieve data from a result set one row at a time, instead of the T-SQL commands that operate on all the rows in the result set at one time. We use a cursor when we need to update records in a database table in singleton fashion means row by row.
Syntax
Do refer below link
https://www.c-sharpcorner.com/UploadFile/f0b2ed/cursors-in-sql/
https://learn.microsoft.com/en-us/sql/t-sql/language-elements/declare-cursor-transact-sql?view=sql-server-ver16
https://www.dotnettricks.com/learn/sqlserver/sql-server-basics-of-cursors
https://www.mssqltips.com/sqlservertip/1599/cursor-in-sql-server/
Rajeev KumarPosted Jul 10, 2023, 7:54 AM
A cursor in SQL Server is a database object that allows us to retrieve each row at a time and manipulate its data. A cursor is nothing more than a pointer to a row. It's always used in conjunction with a SELECT statement.
Deepak MiddhaPosted Nov 3, 2012, 7:10 AM
Fore more help visit http://www.c-sharpcorner.com/UploadFile/63f5c2/cursor-in-sql-server/
Satyapriya NayakPosted Nov 2, 2012, 3:01 AM
Sandeep Singh ShekhawatPosted Nov 2, 2012, 12:33 AM
http://www.dotnet-tricks.com/Tutorial/sqlserver?id=4L7I050512&title=SQL%20Server%20-%20Basic%20of%20Cursor
http://www.dotnet-tricks.com/Tutorial/sqlserver/RLID060512-SQL-Server-Different-Types-of-Cursors.html