About 521,000 results
Open links in new tab
  1. SQL Server Cursor Explained By Examples - SQL Server Tutorial

    In this tutorial, you will learn how to use the SQL Server cursor to process a result set, one row at a time.

  2. DECLARE CURSOR (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 22, 2024 · Defines the attributes of a Transact-SQL server cursor, such as its scrolling behavior and the query used to build the result set on which the cursor operates. DECLARE …

  3. SQL Server Cursor Example

    Apr 22, 2025 · What is a SQL Server Cursor? A SQL Server cursor is a set of T-SQL logic that loops over a predetermined number of rows one at a time. The purpose of the cursor may be …

  4. What is the use of a cursor in SQL Server? - Stack Overflow

    Sep 25, 2018 · Cursors are a mechanism to explicitly enumerate through the rows of a result set, rather than retrieving it as such.

  5. Learn SQL: SQL Server Cursors - SQL Shack

    Jun 22, 2020 · SQL Server supports 3 different implementations of cursors – Transact-SQL cursors, API cursors, and Client cursors. In this article, we’ll focus on Transact-SQL cursors. …

  6. Mastering Cursors In SQL Server - C# Corner

    In SQL Server, a cursor is a database object that allows you to retrieve and manipulate rows from a result set one at a time. Cursors are useful when you need to perform operations on each …

  7. Cursors In SQL Server - ScholarHat

    Feb 18, 2025 · In SQL Server, a cursor is a database object that allows us to retrieve and manipulate each row one at a time. It is nothing more than a row pointer. A cursor is always …

  8. T-SQL Cursors - Create cursors in SQL Server - T-SQL Tutorial

    In this section you can learn how to work with cursors using operations like declare cursor, create procedure, fetch, delete, update, close, set, deallocate. To create a cursor, use the CURSOR …

  9. Cursor Examples for SQL Server - Brent Ozar Unlimited®

    Cursors do row-by-row processing – or as Jeff Moden calls it, ReBAR – Row By Agonizing Row. This is a common approach for developers who think like application servers think – and hey, I …

  10. SQL Server Cursors: A How-To Guide - Simple SQL Tutorials

    Jun 9, 2021 · We use a cursor when we need to basically loop through the results of a query, from top to bottom, looking at each row and possibly doing some kind of work on the data. There …

  11. Some results have been removed
Refresh