Try creating an sql procedure saving the data in a table, on SQL prepare grid...