Quoting David Goodman <[EMAIL PROTECTED]>: > Hello Michael: > > You write: > > "Theoretically yes - at least for queries (select > statements). Print and raiserror statements *should* > normally be sent back in the same way as you'd get > them in isql, but you may be seeing buffering > differences where the error handler prints to STDERR > and your data rows (from fetchrow) are printed to STDOUT." > > In my case both the messages and the rows are inserted > to an array and later printed to a file. So I don't > think that the difference between buffering of STDERR > and STDOUT is at work. > > Would you be able to think of an alternative > explanation for messages coming back to the message > handler before the rows arrive?
Just a SWAG since I don't use Sybase. Could the "SELECT var=value" statements be being processed in the local client instead of the database? -- Mac :})