I am trying to fetch data from database and export it to .csv file format, which is similar to ETL process. But I want to do this in C#.
- SQL Query to fetch data from database.
- Format the data to a specified file specification.
- Convert it to .csv file.
I know that 1st step is easy to do, I am struggling to find a way for 2nd and 3rd step.