Problems exporting to an Excel Named Range

  • 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


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2

  • 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


  • 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


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2

Viewing 3 posts - 1 through 3 (of 3 total)

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