DBA > Job Interview Questions > Sybase Interview Questions and Answers

How to remove row affected and dashes

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

How to remove row affected and dashes

If you pipe the output of isql then you can use sed(1) to remove this extraneous output:

echo "$PASSWD
sp_who
go" | isql -U sa -S MY_SERVER | sed -e '/affected/d'
-e '/---/d'


If you simply wish to eliminate the row affected line use the set nocount on switch.

(Continued on next question...)

Other Job Interview Questions