When I execute a TSQL query or a stored procedure that returns large number of records (1M+) by default it begins to display result while query is still executing.
Is there way to prevent this and postpone returning of the result until the query execution is complete?
#temptable or maybe rewriting the query to get a blocking operator but it then takes server memory storing the whole result set.