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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Column Header and Results Formatting

Status
Not open for further replies.

benhsmith

Programmer
Apr 15, 2002
3
GB
I am using SQL 6.5 and require to have the results of my query to appear without column headers and as Tab Delimited.

i realise that I can do this through the 'Query Options' in the menu bar but I need to set this using an SQL statement in the query itself (Similarly to 'set rowcount' or 'set nocount off').

Please Help!!
 
Without knowing what your values are within your query, you can force the tab character into your result set as such:
Code:
SELECT varchar_field + Char(9) + Convert(int_field, varchar(3)) + Char(9) + ...
That way, not only do you lose the column names, you also get your Tab delimiter. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top