I have a table with 100000 records and I would like to export these to a few text files. For example the records 1 to 15000 to A1.TXT, 15001 to 25000 to A2.txt etc....
Is there a query I can use to do this?
Thanks
Louis
1. To use a query I'd use the "Top" statement...then you can select how many records the query actually pulls. You'd have to do some work to get it to pull the middle section of data (ie not the first set and not the last set), but it could be done.
2. I think I'd go with doing this in code...it wouldn't be hard, just loop through however many records you want and export them to a text file as you go.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.