format file in BCP

format file in BCP

 

  

Hi all ..

When i am using a format file to generate files using BCP the file is
generated as given below

 |  |X|/" | | | |/"
 |( |X|0" | | | |0"
 |#t |Y|1" | | | |1"
 |  |Y|1" | | | |1"
 |[|f|[" | | | |["
 |[|"|[" | | | |["
 |& ||[" | | | |["

but i want the file to be as given below and i want to use a formatfile
also. When i tried to use -c in BCP i got the file as i want and if i
am using - c it is overriding the format file . Is there any way to generate
files as given below using format files . I want to insert these records
into oracle so i have to use the format file ....


1|920017|7000|2003-03-01 00:00:00|0|0|1|2003-03-01 00:00:00
2|1158696|7000|2003-03-02 00:00:00|1|0|1|2003-03-02 00:00:00
3|1209379|7001|2003-03-03 00:00:00|6|0|3|2003-03-03 00:00:00
4|920017|7001|2003-03-03 00:00:00|6|0|3|2003-03-03 00:00:00


Thanks
Shibu



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
MS Sql Server LazyDBA home page