?
Solved

C# code to create CSV file with SQL resultant output

Posted on 2014-04-21
3
Medium Priority
?
2,695 Views
Last Modified: 2014-04-22
Hello Experts,

I want to know how to create CSV file from table data present in dataset/datatable via C# code.

Any URL's or sample demo code which help me in understanding will be helpfull.

Thank You !!
0
Comment
Question by:Md Shah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 1000 total points
ID: 40013174
0
 
LVL 7

Accepted Solution

by:
Utkarsh Kulkarni earned 1000 total points
ID: 40014123
Another way to do is bind this data to Grid & save that grid to CSV file. Sample code ref is

http://stackoverflow.com/questions/7090628/datagrid-to-csv-file

Simple workout is like

http://stackoverflow.com/questions/4959722/c-sharp-datatable-to-csv

This will give you clear idea.
0
 
LVL 8

Author Closing Comment

by:Md Shah
ID: 40016458
Thanks guys for sharing the info... It works...

Cheers
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question