Skip to content

Commit 0a9c8b7

Browse files
erikdarlingdatarwestMSFT
authored andcommitted
Update output-clause-transact-sql.md
Add a note to the parallelism section about table variables.
1 parent 9b9789c commit 0a9c8b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/t-sql/queries/output-clause-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ DELETE Sales.ShoppingCartItem
204204
- In the \<dml_table_source> clause, the SELECT and WHERE clauses cannot include subqueries, aggregate functions, ranking functions, full-text predicates, user-defined functions that perform data access, or the TEXTPTR function.
205205

206206
## Parallelism
207-
An OUTPUT clause that returns results to the client will always use a serial plan.
207+
An OUTPUT clause that returns results to the client or table variable will always use a serial plan.
208208

209209
In the context of a database set to compatibility level 130 or higher, if an INSERT...SELECT operation uses a WITH (TABLOCK) hint for the SELECT statement and also uses OUTPUT...INTO to insert into a temporary or user table, then the target table for the INSERT...SELECT will be eligible for parallelism depending on the subtree cost. The target table referenced in the OUTPUT INTO clause will not be eligible for parallelism.
210210

0 commit comments

Comments
 (0)