SQL Server error code
SQL Server error 5322
SQL Server raises error 5322 at severity 16, which marks a problem with the query or data that you can correct.
An aggregate function is not allowed in the %S_MSG clause when the FROM clause contains a nested INSERT, UPDATE, DELETE, or MERGE statement.
| Msg | 5322 |
|---|---|
| Severity | 16 |
| Group | 5000–5999 |