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!

No headers with SQLplus

Status
Not open for further replies.

emikoo

Technical User
Jul 12, 2002
37
NL
Hello,

I am outputting a simple select query to a txt file. But currently the column headers are also exported. I only want to have the returning rows and not the headers. Anybody know how to deal with this?

Thnxs for your help,

Emile
 
hello,

i normally use the ltrim and rtrim function and delimit the data with a pipe "|"...

i'm assuming you are trying to get a bcp out 'look'...

if so use the following:

use databaseName
go

select ltrim(rtrim(convert(char(10),numericColumnName)))+"|"+
ltrim(rtrim(charColumnName1))+"|"+
ltrim(rtrim(charColumnName2))
from tableName
go

hth,
q.
 
hello,

sorry... i thought you were asking about isql...

cheers,
q.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top