Mohammed Daoud offers SQL to Update Company ID field across all company databases.
Mohammad R. Daoud: Update Company ID field across all company database
Archived post from 2014. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.