SQL: Iterate through SQL results and execute Stored Procedure