SQL Server error code
SQL Server error 2785
SQL Server raises error 2785 at severity 16, which marks a problem with the query or data that you can correct.
User-defined functions, user-defined aggregates, CLR types, and methods on CLR types are not allowed in expressions in this context.
| Msg | 2785 |
|---|---|
| Severity | 16 |
| Group | 2000–2999 |