About 3,810 results
Open links in new tab
  1. An INSERT EXEC statement cannot be nested after upgrade and …

    Mar 10, 2022 · Hi , I am receiving "An INSERT EXEC statement cannot be nested". I know the reason as there are 2 stored procedures that call each other and both have INSERT …

  2. Insert Into Table with Exec Sproc - Microsoft Q&A

    May 2, 2023 · How do you insert data into a table variable or temp table by calling a stored procedure?

  3. Error 556 insert exec failed - SQL Server | Microsoft Learn

    Jul 3, 2024 · This article helps you work around the periodic failure of a stored procedure in a database that is using the Query Data Store feature.

  4. Database Engine events and errors (8000 to 8999) - SQL Server

    Nov 18, 2025 · Consult this SQL Server error code list (between 8000 and 8999) to find explanations for error messages for SQL Server database engine events.

  5. INSERT (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · You cannot specify a table-valued parameter as the target of an INSERT EXEC statement; however, it can be specified as a source in the INSERT EXEC string or stored …

  6. Sporadic INSERT EXEC failed because the stored procedure altered …

    Jul 2, 2024 · This saves you from duplicating the INSERT EXEC statements. Then again, in the long run, INSERT-EXEC is an accident waiting to happen for other reasons, so my …

  7. OUTPUT clause (Transact-SQL) - SQL Server | Microsoft Learn

    The results can also be inserted into a table or table variable. Additionally, you can capture the results of an OUTPUT clause in a nested INSERT, UPDATE, DELETE, or MERGE statement, …

  8. Cannot use the ROLLBACK statement within an INSERT-EXEC …

    Jul 21, 2020 · In general, if you're trying to use INSERT EXEC command to insert into a temp table or actual table, try using table variable instead of the actual table or temp table and see if …

  9. Subqueries (SQL Server) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Look at an example of a subquery, which is a query that is nested in a SELECT, INSERT, UPDATE, or DELETE statement, or inside another subquery in SQL Server.

  10. Insert data using exec statement - social.msdn.microsoft.com

    Nov 14, 2013 · I have an exec statement as follows. I want to insert the data /results that I get after runnin this EXEC Statement, into a table. How can I do that? ------------ EXEC Statement …