Removing column headers in CSV export file

  • Hi

    when I export report to CSV file through sql reporting, header row is included, but there is no header row in my report, how to suppress the header row when i export using CSV file format.

    Please let me know if any body knows.

    Thank you,

    Regards

    Vijay

  • Try this

    using Query Analyser -> Tools->Options->Results Default results select = result to file Result output format = Comman Delimited (CSV)

    all the best

    Ramesh G.

  • If you're using SSIS, as your post location implies, the flat file task has a check box to include header rows.  Just uncheck it.

  • Using SQL Server Management Studio (SSMS)

    Tools >> Options >> Query Results >> SQL Server >> Results to Text >> Output format

    Drop down: Comma delimited

    UNCHECK "Include Column headers in the result set" option.

    Click "OK" Button.

     

    "Key"
    MCITP: DBA, MCSE, MCTS: SQL 2005, OCP

  • Hi

    I am exporting CSV file from Sql Reporting Services.

    If anybody knows how to remove header row while export as CSV file, please let me know.

    Thx

    Vijji

     

  • When using Reporting Services tasks to export to a flat file destination you have to create a Flat File Destnation Task.  This task needs a Flat File Connection Manager to tie into you destination file.  You can find this checkbox in your Flat File Connection Manager Task.  Check the box if you want to include a header row.  Uncheck it if you do not want to include a header row.

    Uncheck Header Row

  • Robert O'Byrne (9/18/2007)


    When using Reporting Services tasks to export to a flat file destination you have to create a <U>Flat File Destnation Task</U>. This task needs a <U>Flat File Connection Manager</U> to tie into you destination file. You can find this checkbox in your <U>Flat File Connection Manager Task</U>. Check the box if you want to include a header row. Uncheck it if you do not want to include a header row.

    <IMG alt="Uncheck Header Row" hspace=0 src="file:///C:/Documents%20and%20Settings/ROByrne/Desktop/UncheckHeaderRow.JPG" align=baseline border=0>

    I have just uncovered this thread whilst searching for a solution to removing the column headers from a Reporting Services export to .CSV file.

    From what I can see the answer given by Robert O'Byrne is still related to SSIS NOT SSRS. Does anybody have a solution of how to exclude the header row being included when data is exported from a report to a .CSV file please? Exporting to .XLS or .PDF works fine and does not include the column headers!

    If anybody could advise or point me and the OPer in the right direction it'd be greatly appreciated 😀

    Thanks,

    Dan

  • You may need to handle this at the report level and set the “Visibility” property “Hidden” to “True” for each of header and report column object. Create a report parameter that will toggle the visibility of the header and report columns to “on” or “off” and instruct the users to set the report header parameter “off” before exporting their report to CSV.

    See if this helps...

  • Have you tried setting the DataElementOutput property of the textboxes in the header row? You can do this for a single text box by using the right-click Properties dialog, Data Output pane, and selecting Output: No. Alternatively you can use the Properties pane and set DataElementOutput to NoOutput.

    Not sure if that is what you are looking for.

  • Turning off CSV headers when exporting cannot be done at the report level. You have to configure CSV attributes -

    http://www.behindthecode.net/Blog/post/2008/01/29/How-to-modify-Reporting-Services-CSV-export-Behavior.aspx

  • Not sure if this is of any use to anyone now... but here is a link I found on how a CSV header can be suppressed for individual SSRS reports:

    http://blogs.infosupport.com/modify-reporting-services-export-to-csv-behavior/

    Anything is possible.. it's a matter of effort and time!

    Cheers

  • That is a good technique. I ended up using it.

Viewing 12 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic. Login to reply