May 13, 2009 at 7:31 pm
I'm using an Excel Destination to send data to a named range in an Excel Spreadsheet.
The range is from B3:L14. 11 columns wide, 12 rows.
Column A3-A14 has month names.
Row 2 has column headings.
Row 15 has column totals.
An OLE DB Source feeds the Excel Destination by running a stored procedure.
The Excel Destination's Data Source is set to Table Name or view name variable.
The Variable Name is set to the name of the named range through a variable.
When the data populates the spreadsheet, the data is going into the correct columns, but it is starting at Row 16.
I have tried adding a blank row both above and below the named range, but it still goes after the total line.
How do I get it to go starting at Row 3?
Thanks,
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2009 at 9:36 am
How are you setting the named range in excel destination connection?
I think it should be set to "Command" and the command text should set to "SELECT * FROM [Sheet1$B3:L14]".
--Ramesh
May 14, 2009 at 1:43 pm
Ramesh (5/14/2009)
How are you setting the named range in excel destination connection?I think it should be set to "Command" and the command text should set to "SELECT * FROM [Sheet1$B3:L14]".
The Excel Destination's Data Source is set to Table Name or view name variable.
The Variable Name is set to the name of the named range through a variable.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply