Just another thought, you could search for the SQL Servers and automatically choose the one containing AmaingCharts instance, but this only brings to play, yet another issue. Mutiple SQL Servers with AmazingCharts installed on the same network.
How to choose the correct one?

and the list goes on.