You didn't give much details. A way would be:
-Create a text file with csv extension.
-ExecuteReader()
-Write column names on first line separated by commas
while ( reader.Read() )
{
// Write row data, fields separated by commas and " as string delimiter. Each row ends with a CRLF pair
}
|