The global variable @@tranchained to determine SAP ASE’s current transaction mode. select @@tranchained returns 0 for unchained mode or 1 for chained mode.