Excel data connection - remove header row?

Posted by ekoner on Stack Overflow See other posts from Stack Overflow or by ekoner
Published on 2010-03-22T13:25:21Z Indexed on 2010/03/22 13:31 UTC
Read the original article Hit count: 297

Filed under:
|
|
|

The excel spreadsheet is connecting to SQL server 2005 using the connection string below:

Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=XXXXXX;Data Source=XXXXXX;Extended Properties="HDR=No";Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=XXXXXX;Use Encryption for Data=False;Tag with column collation when possible=False

It then pulls data from a view into Excel. The business user wants this information without a header row. This will allow her to review then save as a "headless" csv in SAGE file format.

I attempted to alter the connection string by adding HDR=No but that hasn't worked. Additionally, I can't delete the header row. Deleting the content replaces the column names with "Column 1" etc.

Any ideas appreciated!

© Stack Overflow or respective owner

Related posts about excel

Related posts about data