Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exporting data to different csv files

Status
Not open for further replies.

gojohnnygogogogo

Programmer
May 22, 2002
161
0
0
GB
hello,
I have one table with about 800,000 records in it, I need to export the data to files where the value in one field is equal to others.

eg.
select * from table1 where number = '1'
this creates file1

then

eg. select * from table1 where number = '2'
this creates file2

and so on.

instead of doing indivdual queries and exports can I somehow automate this ?


thanks for any help
 
You Can use DTS to do these. Create a DTS which fires up the query and using DTS export to csv file. You can automate this by scheduling the DTS Package
 
but how can I go through the number field automatically to create the needed queres for the files ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top