What version are you using?
If you are connected to a database, you can use any of the builtin functions
that take a query as a parameter and check the result to see if the query
was parsed corrected (and passed semantic analysis).
For example, look at these functions in the docs:
rewrite()
sqldialect()
watcomsql()
transactsql()
sqlflagger()
estimate()
and many others. (depending on which version you are using, some of these
functions may not be available - I've pulled this list from the 11.0.0 docs).
--
Mark Culp
SQLAnywhere Research and Development
iAnywhere Solutions Engineering
-------------------------------------------------------------------------
-- SQL Anywhere Blog Center - http://www.sybase.com/sqlanyblogs
-- SQL Anywhere Developer Community:
-- http://www.sybase.com/developer/library/sql-anywhere-techcorner
-------------------------------------------------------------------------
Post by masonBesides -x option for dbisql, is there a stored procedure or statements to
call to do syntax check for an SQL statement? Thanks.