About 702,000 results
Open links in new tab
  1. Cursors (SQL Server) - SQL Server | Microsoft Learn

    Dec 7, 2023 · Although the database API cursor models consider a forward-only cursor to be a distinct type of cursor, SQL Server doesn't. SQL Server considers both forward-only and scroll …

  2. SQL Server Cursor Explained By Examples

    SQL works based on set e.g., SELECT statement returns a set of rows which is called a result set. However, sometimes, you may want to process a data set on a row by row basis. This is …

  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 …

  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 …

  5. T-SQL Cursors - Create cursors in 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. To create a cursor, use the CURSOR …

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

    Oct 29, 2025 · Cursors in SQL Server allow row-by-row data manipulation, contrasting with T-SQL’s full result set operations. While useful for specific tasks, they can very negatively impact …

  7. 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 …

  8. Cursors In SQL Server - ScholarHat

    Sep 18, 2025 · Cursors in SQL Server are database objects used 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 …

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

    Sometimes cursors are fine – like for one-time utility code or database maintenance routines – but if you find yourself writing cursors as part of a transactional operation, it’s time to think about …

  10. Understanding SQL Server Cursors: A Comprehensive Guide

    Jul 23, 2024 · In the world of SQL Server, cursors play a crucial role when it comes to row-by-row processing of result sets. Although they are generally considered less efficient compared to …