13.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
  • No tags were found...

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

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

@@ Special Variables@@ROWCOUNT value. Upon completion of the trigger code, @@ROWCOUNT reverts to the value immediately priorto the trigger invocation.COS %ROWCOUNT<strong>SQL</strong> :%ROWCOUNT7.2.7 @@SERVERNAMEContains the <strong>Caché</strong> instance name.COS $PIECE($system,":",2)7.2.8 @@SPIDContains the server process ID of the current process.COS $JOB<strong>SQL</strong> $T<strong>SQL</strong>_SPID()7.2.9 @@<strong>SQL</strong>STATUSContains an integer specifying the completion status of the most recent <strong>SQL</strong> statement. Available values are: 0=successfulcompletion; 1=failure; 2=no (more) data available.COS $Case($Get(<strong>SQL</strong>CODE,0),0:0,100:2,:1)<strong>SQL</strong> CASE :<strong>SQL</strong>CODE WHEN 0 THEN 0 WHEN 100 THEN 2 ELSE 1 END7.2.10 @@TRANCOUNTContains the number of currently active transactions.COS $TLEVEL<strong>SQL</strong> $T<strong>SQL</strong>_TRANCOUNT()7.2.11 @@VERSIONContains the <strong>Caché</strong> version number and date and time of its installation.COS $ZVERSION<strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong> 53

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

Saved successfully!

Ooh no, something went wrong!