Okay,
This is my first time working with the new Set RowCount option. Looks like fun and I understand the basics, but I have a question.
I have a record set returning 409934 Distinct rows. Of course, the end users want this in an excel sheet (at which point I laughed hysterically before digging out the new RowCount function info). So, I can get the first 65,000 rows (I believe that's Excel's limit) into a sheet, but now I'm trying to figure out how to get the next 65,000 into a new worksheet. Can I do a WHERE RowCount > 65,000 and RowCount < 130,000?
For the record, I did try this and am getting an error, but I don't know if there's a way around this other than sticking everything in a TEMP table and using an identity column to separate the values.
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
This is my first time working with the new Set RowCount option. Looks like fun and I understand the basics, but I have a question.
I have a record set returning 409934 Distinct rows. Of course, the end users want this in an excel sheet (at which point I laughed hysterically before digging out the new RowCount function info). So, I can get the first 65,000 rows (I believe that's Excel's limit) into a sheet, but now I'm trying to figure out how to get the next 65,000 into a new worksheet. Can I do a WHERE RowCount > 65,000 and RowCount < 130,000?
For the record, I did try this and am getting an error, but I don't know if there's a way around this other than sticking everything in a TEMP table and using an identity column to separate the values.
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"