Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help - Formatting Query Results

Status
Not open for further replies.

whyzyrd

Programmer
Nov 21, 2001
2
US
I am trying to run a query on a Sybase dB with the results being written to a file. I want to be able to import this file into Excel. Does anyone know how to have SQL insert a fixed character (comma, semi colon, tab, etc) between each output column?
 
You may use "isql" with the "-s" option. The "-s" option defines the column separator. Use tab character as a column separator.

isql -U<username> -s&quot;<EnterTabHere>&quot;

Hope this helps you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top