About 18,500,000 results
Open links in new tab
  1. OUTPUT clause (Transact-SQL) - SQL Server | Microsoft Learn

    Specifies a table that the returned rows are inserted into instead of being returned to the caller. output_table might be a temporary table. If column_list isn't specified, the table must have the same …

  2. The OUTPUT Clause for INSERT and DELETE Statements

    Sep 20, 2016 · The OUTPUT clause was introduced in SQL Server 2005. The OUTPUT clause returns the values of each row that was affected by an INSERT, UPDATE or DELETE statements.

  3. What is the use of OUTPUT clause in sql server - Stack Overflow

    Jan 9, 2014 · When you perform Insert/Update/Delete operation on particular table and want to know what rows are affected OR want to log them for audit trail OR you want to use multiple values of …

  4. SQL RETURN and SQL OUTPUT clause in Stored Procedures

    May 28, 2025 · In this article, we look at how to use RETURN and OUTPUT in a SQL Server stored procedure to get a return value after execution.

  5. Mastering the SQL OUTPUT Clause: Capturing Modified Data in SQL

    May 25, 2025 · The SQL OUTPUT clause in SQL Server is a powerful feature that allows you to capture and return data from rows affected by INSERT, UPDATE, DELETE, or MERGE operations, …

  6. SQL Tutorial - W3Schools

    SQL is a standard language for storing, manipulating and retrieving data in databases. Our SQL tutorial will teach you how to use SQL in: MySQL, SQL Server, MS Access, Oracle, Sybase, Informix, …

  7. The OUTPUT Clause – Basic Examples | Notes on SQL

    Jul 20, 2023 · By using the OUTPUT clause, we can combine the copy and the delete into one command. Other processes can still manipulate the same table, but any changes that we made are …

  8. A Beginner's Guide to the OUTPUT Clause in SQL Server

    We primarily use the OUTPUT clause for auditing and archiving modified rows. In this tutorial, we will walk through the use of the OUTPUT clause with different DML statements and examples.

  9. OUTPUT Clause — Log, Sync, and Debug Like a Pro - Medium

    Apr 25, 2025 · Whether you're logging changes, syncing rows between tables, or debugging multi-row operations, the OUTPUT clause offers a clean, consistent way to work with the data your statements …

  10. How to Log Data Changes with the SQL Server OUTPUT Clause

    Sep 20, 2024 · The OUTPUT clause can be used to return data after performing INSERT, UPDATE, DELETE, or MERGE operations. It returns values from the INSERTED and DELETED tables, which …