Skip to content

Commit 1d7e20c

Browse files
authored
Merge pull request #19533 from joesackmsft/patch-39
Added CU11 restrictions
2 parents 83853da + 9024004 commit 1d7e20c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/relational-databases/user-defined-functions/scalar-udf-inlining.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ Depending upon the complexity of the logic in the UDF, the resulting query plan
161161
- The UDF does not reference remote tables <sup>7</sup>.
162162
- The UDF-calling query does not use `GROUPING SETS`, `CUBE`, or `ROLLUP` <sup>7</sup>.
163163
- The UDF-calling query does not contain a variable that is used as a UDF parameter for assignment (for example, `SELECT @y = 2`, `@x = UDF(@y)`)<sup>7</sup>.
164+
- The UDF references encrypted columns <sup>8</sup>.
165+
- The UDF contains references to 'WITH XMLNAMESPACES' <sup>8</sup>.
166+
- The query invoking the UDF has Common Table Expressions (CTEs)<sup>8</sup>.
164167

165168
<sup>1</sup> `SELECT` with variable accumulation/aggregation is not supported for inlining (such as `SELECT @val += col1 FROM table1`).
166169

@@ -176,6 +179,8 @@ Depending upon the complexity of the logic in the UDF, the resulting query plan
176179

177180
<sup>7</sup> Restriction added in [!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)] CU6
178181

182+
<sup>8</sup> Restriction added in [!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)] CU11
183+
179184
> [!NOTE]
180185
> For information on the latest T-SQL Scalar UDF Inlining fixes and changes to inlining eligibility scenarios, see the Knowledge Base article: [FIX: Scalar UDF Inlining issues in SQL Server 2019](https://support.microsoft.com/help/4538581).
181186

0 commit comments

Comments
 (0)