In a new post up at Dynamics GP Land Steve Endow looks at Formatting Dynamics GP Phone Numbers in a SQL Query.
Formatting Dynamics GP Phone Numbers in a SQL Query
Archived post from 2010. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.