Include the field name

More
1 year 10 months ago #24277 by Neil
Include the field name was created by Neil
Hi.

I was looking at the table2text utility and was curious if there was any flag that could be set to include the field/column name? The order is different from what I've seen with Excel using ODBC and several tables have very similar data in each column, so I don't want to guess.

Thank you
 

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago - 1 year 1 week ago #24281 by Peter.Jonson
Replied by Peter.Jonson on topic Include the field name
Hi Neil

I assume that you want to use SQL statement as data source, this option is not supported by table2text.As alternative you can use AETL export data action.

www.etl-tools.com/wiki/advanced-etl-proc.../sql-to-text-action/

It does support sql as data source.

Peter Jonson
ETL Developer
Last edit: 1 year 1 week ago by admin.
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #24287 by Neil
Replied by Neil on topic Include the field name
No, sorry for the confusion, I'm using an ODBC connection to a local database, and table2text seems to do just fine getting all the records out as a CSV, but the first line of the file doesn't have the column names, so I don't know what data is in which column.

I was hoping something like COLUMN_NAME=TRUE would include the names on the first row.

Does that make sense?
The following user(s) said Thank You: Peter.Jonson

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #24290 by Peter.Jonson
Replied by Peter.Jonson on topic Include the field name
I see what you mean now.You can use FIELDS option for thattable2text.exe DSN=odbcdsn;DISABLEBULKFETCH=TRUE;FIELDS;USER=username;PASSWORD=password;TABLE=table_name;FILE=c:\test.csv;QUOTE=";DELIMITER=,

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save