Показать сообщение отдельно
Старый 29.12.2010, 22:00   #13  
EVGL is offline
EVGL
Banned
Соотечественники
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
4,445 / 3001 (0) ++++++++++
Регистрация: 09.07.2002
Адрес: Parndorf, AT
Jonny, вы спасли мне день.
Мой вариант для всех таблиц:

X++:
static void Job14(Args _args)
{
    SqldataDictionary       dict = new SqldataDictionary();
    Dictionary              dictionary = new Dictionary();
    TableId                 tableId;
    SysOperationProgress    progress;
    ;
    
    progress = new SysOperationProgress();
    progress.setTotal(dictionary.tableCnt());
    
    tableId = dictionary.tableNext(0);
    while (tableId)
    {
        progress.setText(dictionary.tableName(tableId));
        
        dict.tableSynchronize(tableId, true, true);
        
        tableId = dictionary.tableNext(tableId);
        progress.incCount();
    }
}
За это сообщение автора поблагодарили: imir (2).