Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 import/export data

Author  Topic 

Pearltemidayo
Starting Member

2 Posts

Posted - 2007-11-26 : 12:21:57
hi Guys
what is the best way to create a csv file using a select statement and secondly i want to do a check by looking/looping through a flat file ehich could be a csv for the value of a column and based on the value e.g Y, do a delete in a database table

i.e delete from mytable where the id value = the id value of the one in the flat where where the check columns value is Y
any idea will be appreciated
thanks

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2007-11-26 : 12:45:11
Why do you need to create this as a flat file?

If you put this information into a staging table, then you could do the whole delete as a batch, therefore making the operation much quicker.
Go to Top of Page
   

- Advertisement -