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!

iSQL output file - getting rid of [end of job] comment

Status
Not open for further replies.

tbrock03

Programmer
Jul 9, 2002
6
US
When I run this SQL to a text file, it prints out fine, but contains a End of Job Successful [or something similar] at the bottom of my text file. Is there any way to get rid of this?

I am using Sybase.
 
Try this SET NOCOUNT ON, Put this line before you process the sql statement.

Ex
SET NOCOUNTON
SELECT * FROM tablename

dbtech
 
I've tried adding this line
Set nocount on
to my sql but I still receive

(Return Status = 0)

at the bottom of my output file.
 
Maybe I am adding the set nocount on line in the wrong place. Do i add it to my sql script or on the isql command line?

My sql is>>

declare cursor a_csr for
Select
....
go

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top