SQL Script runs successfully but the changes are not visible in the geodatabase. The version gets created successfully but it seems like the version is either not saved or something else is going on...
EXEC dbo.create_version 'dbo.DEFAULT', 'WMMtoESRI', 2, 1, 'This version contains data pushed from WMM to ESRI';
EXEC dbo.set_current_version 'WMMtoESRI';
EXEC dbo.edit_version 'WMMtoESRI', 1;
BEGIN TRANSACTION
UPDATE ElectricNetwork.dbo.Regulators
SET esPhasing = WMM_Export.dbo.REGULATOR.wmPhasing
FROM WMM_Export.dbo.REGULATOR
WHERE
ElectricNetwork.dbo.Regulators.GUID=WMM_Export.dbo.REGULATOR.wmextVoltageRegulator__GUID_ESR
COMMIT;
EXEC dbo.edit_version 'WMMtoESRI', 2;
Thank you!
Solved! Go to Solution.
Well, only thing I can think of is that I hope the join is valid and has some records matching...
I will try to test with a sample data at my end whenever I have some time to test this and get back..
Well, I tried with sample data and it worked for me. Make sure:
1. There are records matching for the Join that you are creating, for the Update to happen (I know this is obvious, but still confirm)
2. You are checking the correct version in ArcMap\ArcCatalog for the updates after executing the SQL.
Thank you Asrujit SenGupta! It was an issue with the records matching. Now that I sorted that out it works perfectly. Thank you so much for your time!!
Addie
Adding a broader audience: https://community.esri.com/groups/geodatabase?sr=search&searchId=a5565455-889d-4f1d-b7e3-3fed728ddfe...