David Musgrave resolves and issue with VBA: DUOS data stored in the wrong database after switching companies
VBA: DUOS data stored in the wrong database after switching companies – Developing for Dynamics GP
SQL & DataDevelopment & Integration
Archived post from 2014. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.