12.07.2015 Views

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

T<strong>SQL</strong> Commands3.6.5 CHECKPOINTThe CHECKPOINT statement is parsed but ignored in <strong>Caché</strong> T<strong>SQL</strong>. It performs no operation.3.7 Other StatementsThe following standard <strong>Transact</strong>-<strong>SQL</strong> statements are supported.3.7.1 CREATE PROCEDURE / CREATE FUNCTIONYou can return a single scalar value result from either a PROCEDURE or a FUNCTION. OUTPUTparameters and default values are also supported. Currently, result sets and tables can't bereturned.CREATE FUNCTION is treated as a synonym for CREATE PROCEDURE.• Any statements can be used in a FUNCTION.• The RETURNS statement is allowed after CREATE PROCEDURE.3.7.2 DROP PROCEDURESupported.3.7.3 EXECUTEThe EXECUTE (or EXEC) statements are supported as follows:EXEC is supported. The EXEC keyword cannot be omitted. Named parametersare supported.The following EXEC features are not currently supported: procedure variables,and procedure numbers (i.e. ';n'). WITH RECOMPILE is accepted but ignored.EXEC is supported. The ability to execute a string as T<strong>SQL</strong> can also be accessedfrom COS using a class method: ##class(%T<strong>SQL</strong>.Transformer).ExecuteStringAsT<strong>SQL</strong>,or from C<strong>SQL</strong> using the same method as a stored procedure:%T<strong>SQL</strong>.Transformer_ExecuteStringAsT<strong>SQL</strong>20 <strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!