we are executing some sql string from .NET against sqlanywhere and our errors are not getting reported.
This question is marked "community wiki".
|
AFAIK, on_error is an ISQL option and as such does not have any influence on other applications (like your .Net app). How are you handling errors around your SQL code? I would expect a query against a non-existing table to throw a SAException object... The problem was not SQL Anywhere it was my coding of .NET I was using the DataAdapter.FillSchema against 2 select statements and the FillSchema seems to ingore the table half of the select when getting the column names.
(11 Oct '11, 08:55)
goroth
|
Please provide your select statement, as Volker says you should get an Exception in .net, e.g. for a statement of the form: select * from ExistingTable where x in (select x from NotExisting) something like: ERROR [42S02] [Sybase][ODBC Driver][SQL Anywhere]Table 'NotExisting' not found |