Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Export SQL data to csv file

$
0
0

Hello;

i'm using SQL Server Agent to export data to csv file with type (Transact-SQL script) query in job, but when i  got the output as csv file, i have result as a table which contain above the table header a note as follow 'Job 'Test' : Step 1, 'Test1' : Began Executing 2018-07-24 08:32:28', then empty row then the Header then dashes like this '--------------------------------------------------------------------------------------------' the the table and the end of table there is note '(53 rows(s) affected)',

My question is , is there a way to get a result only with table and its header with the notes and the dashes beside when i excute a new query the i save as, the file i got only the table with header.

Thank you.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>