Steve Endow on Executing SQL DDL scripts from a Dynamics GP VS Tools AddIn.
Dynamics GP Land: Executing SQL DDL scripts from a Dynamics GP VS Tools AddIn
Development & IntegrationSQL & Data
Archived post from 2014. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.