dbTalk Databases Forums  

export column headers

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss export column headers in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Filip Vanderstappen
 
Posts: n/a

Default export column headers - 11-04-2009 , 05:33 AM






Hi,

we are using SQL Anywhere 11. When we use interactive sql
for exporting data from a table to a csv-file, we don't see
the column header. Is there a way to export the records and
the column headers into a csv-file?

By,

Filip

Reply With Quote
  #2  
Old   
Nick Elson [Sybase iAnywhere]
 
Posts: n/a

Default Re: export column headers - 11-04-2009 , 07:28 PM






I don't know if it helps you can get something like
that through the clipboad by copying the entire
Results pane to an editor or (possibly) some spread
sheet (my copy of Excel requires an extra step of
converting Text-to-Columns).

Otherwise there are no headings for formts TEXT or FIXED
[see OUTPUT statement]. You would need to go with
a formated file format, like HTML or XML ... if those can
help.

There is the option of using the SQL format but that requires
your SQL statement you used to have a full select-list
clause spelled out (a `select * from table` will be a little
disappointing, for example).

Does the {INPUT | OUTPUT} USING connection-string
statement variants help out at all?

Of course, you may be able to add that information yourself
if you are planning of doing that programatically.

In addition to these comments, many other products can import data from our
database.

HTH

"Filip Vanderstappen" wrote in message
news:4af16685.3f1b.1681692777 (AT) sybase (DOT) com...
Quote:
Hi,

we are using SQL Anywhere 11. When we use interactive sql
for exporting data from a table to a csv-file, we don't see
the column header. Is there a way to export the records and
the column headers into a csv-file?

By,

Filip

Reply With Quote
  #3  
Old   
R. Pods
 
Posts: n/a

Default Re: export column headers - 11-05-2009 , 02:58 AM



Filip,

in case you can use ASA 9.0.2 to connect to your database, in Java ISQL
you would just SELECT ... ; OUTPUT TO ... FORMAT XLS and Bob's your uncle.

It's still one of my pet peeves Sybase discontinued this feature. Maybe
now's the time for a re-enhancement request ( newsgroup
sqlanywhere.product_futures_discussion). I would second that.

Reimer

Filip Vanderstappen wrote:
Quote:
Hi,

we are using SQL Anywhere 11. When we use interactive sql
for exporting data from a table to a csv-file, we don't see
the column header. Is there a way to export the records and
the column headers into a csv-file?

By,

Filip

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.