May 6, 2014

Turn off/on Synchronize database when making changes to AOT tables


How to turn off/on Synchronize database when making changes to AOT tables.

Static void ShowSysSqlSync (Args _args)

{

    SysGlobalCache  sgc;
    str owner = 'SysSqlSync';
    str key   = 'ShowSysSqlSync';

     ;

    sgc = appl.globalCache();

    sgc.set(owner, key, true/false);

    Info (strfmt (' SqlSync  status : %1', sgc.get (owner, key)));

}

No comments: