Seaquel
SQL Server error code

SQL Server error 1051

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

Cursor parameters in a stored procedure must be declared with OUTPUT and VARYING options, and they must be specified in the order CURSOR VARYING OUTPUT.
Msg1051
Severity15
Group1000–1999

Source: Database Engine events and errors