These operations are not allowed in a stored procedure.
To eliminate this error, remove the invalid operation from the stored procedure.