Export resutts from an SQL to a csv text file directly
By selecting SQL (in lanuage dropdown), we write sqls and resultant data is displayed in Results tab below. Is there an sql statement that can directly export the results to a text file. In Sybase database administrator, we have equivalent statement as
SELECT * FROM EMPL ;
OUTPUT TO 'D:\\TEST\\sqlResults.txt' FORMAT TEXT;
Please suggest a solution.
SELECT * FROM EMPL ;
OUTPUT TO 'D:\\TEST\\sqlResults.txt' FORMAT TEXT;
Please suggest a solution.
Comments
A LINQPad example using Util.WriteCsv() would look like: