Alternatives to dynamic SQL

Developers who learn Sybase after learning another DBMS system should not confuse Sybase’s dynamic SQL implementation with that of other vendors. With Adaptive Server, most command types are “dynamic.” The closest analogy that Adaptive Server offers to “static SQL commands” are stored procedures. However, any client application can invoke a stored procedure, as long as the procedure’s permissions allow the client program’s user to execute it. Other DBMS systems may limit the scope of a precompiled static SQL command to the precompiled application.

For Adaptive Server applications, many tasks that require you to use dynamic SQL with another DBMS can be implemented with Client-Library command types other than dynamic SQL. For example: