DanielE
4Penny.net
Points: 7900

3/6/2017 10:32:55 AM

dd_IV00101_SEL_inRangesOf100

* This article, and all our great SQL (Dynamics) documentation, Is available on the SQL (Dynamics) menu

If you're a SQL weenie, please read this all the way through. <smiles> You'll get something out of it.

I'm being asked to send a file to a vendor via a web service, but the vendor can't handle the entire file <sigh> (If they'd hire me, they could <laughs>)

So, I have to break the file down into chunks of 100. This happens to be items, but the technique applies to any large file. It needs to be dynamic because the client's inventory constantly changes and I can't just specify ranges of items, the ranges change.

So, this code brings back a range of exactly 100 items and I use this to send the vendor x files of 100 items. Very cool technique. Love to hear your comments!

This is the output of the code below.

4Penny.net
Version: All
Section: SQL Scripts
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3