Process ID %d is not a valid process ID. Choose a number between 1 and %d
Msg 6101, Level 16, State 1, Line 1
Process ID %d is not a valid process ID. Choose a number between 1 and %d.
This error message appears when you try to terminate an invalid process-ID via KILL.
The T-SQL statement can be parsed, but causes the error at runtime.
Error of the Severity Level 16 are generated by the user and can be fixed by the SQL Server user. The process-ID must be a valid one.
All versions of SQL Server
In the above example is -1 beyond the range of valid process-Ids. This raises the error.