Re: How to break the output file to smaller files - xp_cmdshell
- From: "Allan Mitchell" <allan@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Apr 2006 12:23:31 -0400
We could do this very easily in SSIS which is of course little consolation.
In DTS I suppose you could loop over the source and pick up a certain range
each time until no more rows were exported. You would dynamically change the
destination text file name and location on each iteration of the loop Why
would you want to split a file up like this?
It would make importing the data again a bit of a pain.
--
Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com
"ad" <ad@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:79214B48-868F-4E32-9B18-3704F859CCBB@xxxxxxxxxxxxxxxx
Hi,
I am using bcp and xp_cmdshell to produce output text file in sql server
2000. The size of the output file is so big. Is there any way to break the
file into small files (for example 500 records per each file) ?
Is there any option using the xp_cmdshell?
Thanks,
Aravind
.
- Prev by Date: Re: Copy column transformations
- Next by Date: Re: Migration from 2005 to 2000 and confused
- Previous by thread: Re: Copy column transformations
- Next by thread: Re: Data extraction throughput/performance
- Index(es):
Relevant Pages
|