November 7, 2011 at 2:01 pm
I'm Exporting SQL Server Data into a Monster Excel Document that contains Several Excel Sheets.
Most of the Sheets have Report Headers and the Column Headers in the 8th Row.
I current have all of them mapped to a workbook where the Worksheet had the column headers in the 1st row.
I'm trying to map without the 1st Row Containing Column Headers.
I seem to recall that there was a property that you can set to turn this on/off.
I would like to alter the existing data transformations where I have an OLSDB Source (DB) Data Conversion (Convert Unicode) and an OLE DB Destination to Excel 12.0.
I get a bunch of Meta Data Errors and I can't seem to get around it without recreating the transformation tasks.
Another questions is if I load the Data one day and there are over 159 K rows that day but only 158K the next, how do I make sure that the extra rows do not appear in the WorkSheet?
Any help would be greatly appreciated.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 7, 2011 at 2:15 pm
INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0','Text;Database=D:\MSSQL\;HDR=Yes;', 'SELECT * FROM Test.txt')
SELECT * FROM Keywords
True this is for iimporting data ... but use HDR=No; It might be worth a quick test
November 7, 2011 at 2:22 pm
Thanks Ron.
I was doing it a little differently.
I do not see a property on my Excel Connection where I can set the Header to False.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 8, 2011 at 4:28 pm
I started a new post because the way I worded it was not the best for a reply.
http://www.sqlservercentral.com/Forums/Topic1202548-148-1.aspx
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply