dbTalk Databases Forums  

Export SQl table to excel file including field headers

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Export SQl table to excel file including field headers in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Barak Turovsky
 
Posts: n/a

Default Export SQl table to excel file including field headers - 12-04-2003 , 11:34 AM






Hi,

I've created a simple DTS package to export a content of a table to a .CSV
file.
I would like to that columns in CSV file will be named as the Column names
in the SQL table.

It that possible to do that and how it can be achieved?

Thanks,

Barak



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Export SQl table to excel file including field headers - 12-04-2003 , 12:45 PM






On the properties of the text file when you are setting it up is a checkbox
for "First Row has Column Names". Check that and you should be OK

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Barak Turovsky" <baraktur (AT) mail (DOT) ru> wrote

Quote:
Hi,

I've created a simple DTS package to export a content of a table to a .CSV
file.
I would like to that columns in CSV file will be named as the Column names
in the SQL table.

It that possible to do that and how it can be achieved?

Thanks,

Barak





Reply With Quote
  #3  
Old   
AngelWPB
 
Posts: n/a

Default RE: Export SQl table to excel file including field headers - 12-04-2003 , 12:51 PM



When you set up the connection to the text file click the Properties button below the filename. From Text File Properties dialog box, check the "First row has column names" checkbox.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.