Open regan-sarwas opened 3 years ago
NOTE: In all the impacted stored procedures, which are in akr_socio and are editing akr_socio data, the facility version is set first, so the akr_socio versioned view will always be correct. Only akr_facility needs to have the needed data in the base table. For the QC views, the order is set in the Do Quality Control Check.sql
file. When running the QC queries, the related version is set first since that should be easier to get into the base tables (certainly the version being checked cannot be pushed to the base tables (posted and compressed) until it has completed CQ).
When selecting from two different versions in two different SDE database, the one specified first with the
exec {database_name}.sde.set_current_version 'owner.version'
command, is not just ignored, but the values returned from that database are from the base table, not the versioned view specified, nor the versioned view for default. It does not matter what the "using" database is (it could be master) when running the commands. It doesn't work even if the versions have the same name. The only currently known work around is to post the relevant version to default and then compress. Once compressed, the version's changes should be in the base table and the issue is moot.Other possible un-tested work arounds are:
Impacted Stored Procedures:
Impacted Views:
Generic steps to reproduce (assuming you are
dbo
in SQL Server)Here is a real example