AnsweredAssumed Answered

I want to update all mapservice connections on Arcgis for Server 10.5.1

Question asked by joelhempenius_m on Nov 29, 2017
Latest reply on Jan 18, 2019 by Mehretab

Our current Oracle database has to be migrated to another host. The new host already contains a couple of databases, so it isn't possible to maintain the same hostname. 

The Arcgis Server mapservices data connections therefore need to be updated to connect to the new database. Is there functionality in Arcgis Server 10.5.1 to update all connections at once or to update a connection for a mapservice?


The alternative is to republish all mapservices. I can write a python script to get the security and mapservice settings as json, get the MXD files from the server directory, update the MXD data connection, generate SD and republish the SD using the stored json settings, but this will take more time and might be more error prone.