Then I have a stored procedure that pulls these records from the database. The SP is called like this: