Embedded SQL for C (ESQL/C) fully supports all Transact-SQL extensions, including stored procedures, local variables, and control-of-flow language. Due to syntax conflicts with Embedded SQL reserved keywords, and because static SQL statements are compiled into stored procedures by the precompiler, minor restrictions apply to how Transact-SQL extensions are implemented. The restrictions are as follows:
Note If Microsoft® SQL Server™ returns an error during compilation, the SQL Server error code appears in the precompiler error message as a negative number, for example:
SQL Syntax Error -SQLCODE = -207
For information about a list of messages returned by ESQL, see Embedded SQL for C Messages.
For information about restrictions that relate to other Embedded SQL statements, see Embedded SQL Statements.