It turns out that it is to be controlled using Set NoCount ON and SET NOCOUNT OFF. Use SET NOCOUNT OFF before you don't want to return the results, you want to return the result when you use Set NoCount Off.