Is This Content Helpful?
We're glad to know this article was helpful.
Important step to follow before terminating an SDE connection.
Before terminating an SDE connection, it is important to make sure any map layers referencing the connection are also removed and set equal to Nothing:
Set my_SDE_Layer = Map1.Layers(layer_id)
Set my_SDE_Layer = Nothing
The DataConnection.Connected property may return False even though the DataConnection has not successfully disconnected.