In addition to supporting Transact-SQL alternative syntax, Adaptive Server Anywhere and IQ provide aids for translating statements between the Watcom-SQL and Transact-SQL dialects. Functions returning information about SQL statements and enabling automatic translation of SQL statements include:
WatcomSQL(statement) Returns the Watcom-SQL syntax for the statement.
TransactSQL(statement) Returns the Transact-SQL syntax for the statement.
These are functions, and so can be accessed using a SELECT statement from Interactive SQL. For example, the following statement returns the value Watcom-SQL:
select SqlDialect('select * from employee')