Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
HI,

How can I generate a csv/tab file from a DataTable using C# code?

Thanks.
Posted

1 solution

 
Share this answer
 
v2
Comments
vasini 20-Apr-11 10:45am    
Thank you for sending me the link. Do you know anything I can use direct BCP in C# code? Can I use xp_cmdshell in C# in generating the csv/tab file?
Thanks for your help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900