Hi @Naomi Nosonovsky ,
The error is already said it all: the procedure sends one or more additional result sets before or after that final SELECT. You can verify this by run the line EXEC im_automation.accent_changes; in SSMS.
I suspect SET STATISTICS IO ON and SET STATISTICS TIME ON might send information as additional result sets. Please try remove it.
Also try verifying all the SELECT statements you use in the query to make sure there is only one result sets in the final SELECT.
