The solutions above will work, but we found that the best practice approach would be to create a new table that stores all the different endpoints in the database. Then we updated the CLR to call this table to get the endpoints (points) that were needed. Thus, each server will have the corresponding metadata loaded for it, and all of them will be extracted from the database. No hardcoding this way, and no need to worry about external text files on the SQL server. All this is contained in the database.
source
share