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.
Author |
Topic |
Pearltemidayo
Starting Member
2 Posts |
Posted - 2007-11-26 : 12:21:57
|
hi Guyswhat 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 tablei.e delete from mytable where the id value = the id value of the one in the flat where where the check columns value is Yany 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. |
|
|
|
|
|