[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

C# code to create CSV file with SQL resultant output

Posted on 2014-04-21
3
Medium Priority
?
2,804 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

650 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