About 683,000 results
Open links in new tab
  1. Using a cursor with dynamic SQL in a stored procedure

    Another option in SQL Server is to do all of your dynamic querying into table variable in a stored proc, then use a cursor to query and process that. As to the dreaded cursor debate :), I have …

  2. Dynamic Cursor in SQL Server - Tutorial Gateway

    You can use this SQL Server Dynamic cursor to perform INSERT, DELETE, and UPDATE operations. Unlike static cursors, all the changes made in the Dynamic cursor will reflect the …

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

    Nov 22, 2024 · This cursor provides functionality between a static and a dynamic cursor in its ability to detect changes. Like a static cursor, it doesn't always detect changes to the …

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

  5. Dynamic declaration of cursors in MS SQL Server

    Mar 8, 2007 · Dynamic declaration of cursors in MS SQL Server Sometimes it's required to declare and use cursors to apply some logic on the results of queries that return the same …

  6. Mastering SQL Server Cursors: A Comprehensive Guide with …

    Can SQL Server Cursors be used with dynamic SQL? Yes, SQL Server Cursors can work with dynamic SQL by defining the SQL statement dynamically and executing it within the cursor …

  7. Define Cursor with Dynamic Table Name in SQL Server

    Jan 9, 2020 · You can assign a cursor to a dynamic/variable table by using sp_executesql and output-ing an open cursor. Cursor names can also be variable.

  8. Static Cursor, Dynamic Cursor, and Keyset-Driven Cursor in SQL Server

    In this article, I describe Static Cursor, Keyset-Driven Cursor, and Dynamic Cursor. First, we are creating a table. Creation of table. A Static Cursor shows the result set as it was when the …

  9. DYNAMIC - Creating Dynamic Cursors in SQL Server

    How To Create a Dynamic Cursor with the DYNAMIC Option in SQL Server Transact-SQL? If the underlying table is changed after the cursor is opened, should the changes be reflected in the …

  10. SQL Server Cursor Types - Dynamic Cursor | SQL Server Tutorial …

    Cursors are the objects those allow us to access the data row by row from result set. Dynamic Cursors are update-able. The dynamic cursor will fetch the changes (insert,update or delete) …

  11. Some results have been removed
Refresh