Just about seven years later and still a dream? I spent a bit of time yesterday testing an ArcGIS Server service, changing the database connections behind my registered Data Stores in ArcGIS Server Manager (10.5.1) all to find out that each service hangs on to the database connections it was published with. Our organization has 50 services by multiple publishers that need to be changed as part of a database upgrade project. I thought for sure there had to be an easy-button for this. This morning, ESRI Support confirmed that there is no such thing. I'm glad we only have 50, we are a small city, I can't imagine the pain larger organizations deal with. Sometimes upgrading your database in-place and keeping old server naming conventions are not options.
Remember just changing the data store is not enough because each MXD/MSD is hosted in the ArcGIS Server publishing folders with the original workspaces. The registered data stores are just a check mark for the analysis of a service about to be published.
There should be a database connection manager tool similar to other mapping applications so connections can be managed holistically at the map or project level and not the layer / table level which is where all wqorkspace information is stored.
Regardless we gave up and I might suggest incorporating a DNS alias for your database server as long as the database names are the same. This way all connections point to the alias and when you are ready to change database servers just have DNS updated. This saved us for several SDE SQL Server upgrades from 2008, 2012, 2014 & 2016.
Yes, Ronnie, that's what I just got implemented with our server team. I can't believe we've done it this long without. I'm terribly excited that even the users' connections will not need to be changed again too!
Wanted to follow up with Ronnie Richards and Melissa Northey's last posts... No reported issues with using DNS aliasing when switching to a new DB instance? I'm going from one set of SQL Servers to a new set of SQL 2017 boxes and can't even imagine tracking down all the SDE connection files, etc. So I'm talking to DBA/Server team about setting up aliases.
Arne - no issues encountered since. I highly recommend it. We also use this for a license server. Now I can move the license server to another box and the only ones I have to worry with are those outside of our network that need the IP address.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.