on 2011 Dec 20 2:45 PM
One of our systems was using an older version of SQL Anywhere and when I would run a query with the FORMAT TEXT option like this
select * from tblmed; output to e:\\temp\\med.txt format text
I would get a fixed width file with headers and ------'s under the headers indicating the column width. I also wrote a script to use those output files in a custom reporting system.
After a recent upgrade that same query producing a comma separated file with no headers. Is there a way to get the old fixed with output back?
I know I can rewrite the script but I would like to avoid that if possible.
Thanks in advance,
Mike
Request clarification before answering.
For DBISQL, the following command line will probably get you close:
select * from tblmed > e:\\temp\\med.txt
When run in a command window, DBISQL prints result sets to the console with column names and a long line of dashes as you described. I recognize that it does not achieve your goal of not having to change your script files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
40 | |
15 | |
10 | |
9 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.