I have several models that we use to update our datasets on a weekly or monthly basis due to changes in parcels and new annexations, etc. The final output of these models overwrites production feature classes in our SDE geodatabase. These same feature classes are used by our ArcGIS Server services for our web maps. Of course every time we run the models I first have to stop the services so that the SDE datasets are not locked while they run/overwrite.
What I'm looking for is one of two things:
A. A way in model builder to stop and then restart the services only during the part of the model that is overwriting the feature class. Can services be stopped and started in Model builder? I haven't seen a way yet. This option would allow me to run our large models (some of them take 30 to 45 minutes to run) without having to have the services stopped for the entire time, which I don???t like to do because it makes them unavailable to customers for the duration.
B. A better publishing model for ArcGIS Server that doesn't lock the datasets. The only one I've been able to come up with so far would be to have two copies of the same SDE database. One of them would be the one we update with our models and edit, and the other would be the one the ArcGIS server services are hooked into. The two would be linked by one way replication, which can synchronize the changes without having to stop the services. This seems like the best option to me but it requires quite a bit of work to create and maintain another SDE geodatabase.
Anyone have ideas for me on either A or B or both? If A is possible I will probably just go with it since it is much easier to set up and maintain.