keep column name when exporting to excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • devquest
    New Member
    • Dec 2009
    • 12

    #1

    keep column name when exporting to excel

    I am using the import / export wizard to export data from a sql table to an excel spreadsheet. The column name is Image Url #1 , but when I export it, it becomes
    Image Url .1 instead. How can I prevent this?
    thank you.
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    1. Create a view with the column name as the first record UNION ALL with the entire table.
    2. Export your view without a header.

    Happy Coding!!!

    ~~ CK

    Comment

    Working...