An overview of Transact-SQL support

Sybase IQ, like Adaptive Server Anywhere, supports a large subset of Transact-SQL, which is the dialect of SQL supported by Sybase Adaptive Server Enterprise.

Goals

The goal of Transact-SQL support in IQ is to provide application portability. Many applications, stored procedures, and batch files can be written for use with both Enterprise and IQ databases.

The aim is to write applications to work with both Enterprise and IQ. Existing Adaptive Server Enterprise applications generally require some changes to run on an Adaptive Server Anywhere or IQ database.

How Transact-SQL is supported

Transact-SQL support in IQ takes the following form:

Similarities and differences

IQ supports a very high percentage of Transact-SQL language elements, functions, and statements for working with existing data.

Further, IQ supports a very high percentage of the Transact-SQL stored procedure language (CREATE PROCEDURE syntax, control statements, and so on), and many, but not all, aspects of Transact-SQL data definition language statements.

There are design differences in the architectural and configuration facilities supported by each product. Device management, user management, and maintenance tasks such as backups tend to be system-specific. Even here, IQ provides Transact-SQL system tables as views, where the tables that are not meaningful in IQ have no rows. Also, IQ provides a set of system procedures for some of the more common administrative tasks.