The following steps depend on the type of SQL statement and the capabilities of the remote servers involved.
In SQL Anywhere, each remote server has a set of capabilities defined for it. These capabilities are stored in the ISYSCAPABILITIES system table, and are initialized during the first connection to a remote server.
The generic server class ODBC relies strictly on information returned from the ODBC driver to determine these capabilities. Other server classes such as DB2ODBC have more detailed knowledge of the capabilities of a remote server type and use that knowledge to supplement what is returned from the driver.
Once a server is added to ISYSCAPABILITIES, the capability information is retrieved only from the system table.
Since a remote server may not support all the features of a given SQL statement, SQL Anywhere must break the statement into simpler components to the point that the query can be given to the remote server. SQL features not passed off to a remote server must be evaluated by SQL Anywhere itself.
For example, a query may contain an ORDER BY statement. If a remote server cannot perform ORDER BY, the statement is sent to the remote server without it and SQL Anywhere performs the ORDER BY on the result returned, before returning the result to the user. The user can therefore employ the full range of SQL Anywhere supported SQL.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0|