passthrough mode  Changing the transformation mode

Chapter 6: Issuing SQL Statements

sybase mode

Use sybase mode for maximum compatibility between different target databases. This allows client applications that use sybase mode to potentially operate independently of the target they are accessing. CIS functionality in Adaptive Server and Replication Server require sybase mode when communicating with DirectConnect.

When sybase mode is in effect, the DB2 access service performs a limited amount of T-SQL syntax transformation on all the SQL text that it receives. This includes text found in the following commands:

In sybase mode, the DB2 access service transforms Sybase T-SQL it receives into syntax that the target DBMS supports. If the DB2 access service receives syntax that it does not recognize, it simply passes the text to the DBMS for execution. As a result, a single application should be able to generate somewhat complex queries that can apply consistently to all Sybase-provided DB2 access services.

NoteSybase mode supports multiple statements in a batch, with the exception of set and select@@.

Because an application uses this mode for purposes of compatibility with all DB2 access services provided by Sybase, it should not issue SQL commands that are unique to any single target DBMS.

Sybase mode makes the following transformations to SQL syntax:





Copyright © 2005. Sybase Inc. All rights reserved. Changing the transformation mode

View this book as PDF