John Lowther’s new post tackles Script History Table and Procedures
Script History Table and Procedures – Microsoft Dynamics GP DBA – GP Technical Blogs – Microsoft Dynamics Community
Microsoft & the GP EcosystemSQL & DataDevelopment & Integration
Archived post from 2012. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.