Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Removing column headers in CSV export file Expand / Collapse
Author
Message
Posted Friday, September 7, 2007 8:24 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, February 6, 2013 7:52 AM
Points: 47, Visits: 143
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
Post #397300
Posted Wednesday, September 12, 2007 12:09 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 17, 2014 10:18 AM
Points: 47, Visits: 281

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.

Post #398381
Posted Thursday, September 13, 2007 5:30 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, December 21, 2011 9:28 AM
Points: 660, Visits: 323
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.
Post #398902
Posted Friday, September 14, 2007 6:47 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, February 26, 2009 3:02 PM
Points: 515, Visits: 655

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
Post #399281
Posted Tuesday, September 18, 2007 8:27 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, February 6, 2013 7:52 AM
Points: 47, Visits: 143

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

 

Post #399997
Posted Tuesday, September 18, 2007 8:44 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, December 21, 2011 9:28 AM
Points: 660, Visits: 323

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

Post #400004
Posted Thursday, April 8, 2010 4:58 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, October 25, 2012 9:18 AM
Points: 522, Visits: 493
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 :D

Thanks,
Dan
Post #899411
Posted Thursday, April 8, 2010 8:07 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 9, 2013 2:12 PM
Points: 16, Visits: 43
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...
Post #899592
Posted Friday, April 9, 2010 1:25 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Yesterday @ 5:51 AM
Points: 93, Visits: 1,421
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.
Post #900237
Posted Monday, December 12, 2011 9:47 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, November 12, 2013 8:39 AM
Points: 2, Visits: 76
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
Post #1220359
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse