Consistent value for Layer['connectionProperties']['connection_info']['server'] between ArcMap (10.8.1) and ArcGIS Pro (2.9)

405
0
04-19-2022 10:49 AM
Status: Open
Labels (1)
BlakeTerhune
MVP Regular Contributor

When inspecting the connectionProperties of a Layer object in ArcGIS Pro (2.9), the value of the 'server' property of 'connection_info' is inconsistent depending if the database connection was created in ArcMap or ArcGIS Pro. For example, with Oracle, the 'server' property is 'sde' on a layer added from a database connection created in ArcMap but it's the proper name when the layer uses a database connection created from ArcGIS Pro. The same is true for adding a layer to the map or importing a map from an mxd.

Could the 'server' property be derived more correctly when inspecting the connectionProperties of a Layer added (or imported) from an ArcMap database connection?