Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
To make life easier on everyone I have created a sample piece of code that you can run sql against the Callmanager database.I am putting this hear so I can find it again in the future:)It's not perfect, but tweak as you need it.
clear$scriptPath = ...