• Dev, I did this already.

    I executed the stored procedure and then the query.

    Will you kindly explain you initial point, so that I can understand where you were going with it?