
Through X++ code we can perform database synchronization either on a required table (or) on all tables bases on our requirement.
This could be very useful during on-premises environments package deployments because can can drastically reduce the downtime.
In fact you can only synchronize the tables that you have actually modified rather than perform an entire synchronization
To perform a single table db sync simply create a runnable class and use appl.dbSynchronize(tableNum(‘your table’));
public static void main(Args _args)
{
// On specific table, for all tables just call the method dbSynchronize() without any parameters
appl.dbSynchronize(tableNum(CustTable));
}