Sometime you need to split the query results row in a raw way, for example split the query results in bundles of 65000 rows.
In this utitlitary script is showed a way to do it.
We first create a temporary table to hold the query result, the table has an identity column that we will use to tract the spliting counting; the rest of the columns have to match the structure of the query result.
We create a loop based on the bundle size required.
Try it.