Seaquel
SQL Server error code

SQL Server error 9501

SQL Server raises error 9501 at severity 16, which marks a problem with the query or data that you can correct.

XQuery: Unable to resolve sql:variable('%.*ls'). The variable must be declared as a scalar TSQL variable.
Msg9501
Severity16
Group9000–9999

Source: Database Engine events and errors