About 246,000 results
Open links in new tab
  1. DECLARE CURSOR (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · 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.

  2. SQL Server Cursor Explained By Examples

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

  3. What is Cursor in SQL - GeeksforGeeks

    Aug 4, 2025 · A cursor in SQL is a database object used to process data one row at a time, useful when row-by-row handling is needed instead of bulk processing. It temporarily stores data for operations …

  4. SQL Server Cursor Example

    Sep 28, 2025 · 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 to update one row at a time or perform an …

  5. T-SQL Cursors - Create cursors in SQL Server

    T-SQL Cursors: Transact-SQL Server - In this section you can learn how to work with cursors using operations like declare cursor, create procedure, fetch, delete, update, close, set, deallocate.

  6. How to Use Cursor in SQL for Row-by-Row Processing?

    Apr 23, 2025 · This comprehensive guide explores what a cursor in SQL is, how it works, its use in SQL Server, best practices, and performance considerations. Whether you are a beginner or an …

  7. What is Cursor in SQL - Explained with Examples - Intellipaat

    Aug 21, 2025 · In SQL, a Cursor is a database object that is used to manipulate one row at a time from the result set. Cursors support sequential data processing of individual rows that are returned by a …

  8. Cursors In SQL Server - ScholarHat

    Sep 18, 2025 · Cursors provide row-by-row control in SQL Server, allowing operations that set-based commands cannot. Understand their lifecycle, types, and restrictions so that you may use them …

  9. Cursor Example - Brent Ozar Unlimited®

    In this 16-minute video, Doug Lane explains how to use a date table, which will help you work around cursors that loop through date lists:

  10. What is TSQL Cursor? [Comprehensive Guide] - Red9

    Oct 29, 2025 · Learn about TSQL Server cursors: when to use them, their effects on performance, and better alternatives.