How to detect if a Map Service Layer is not connected to its datasource?

Discussion created by sarafat on Dec 2, 2013
Hi All,

I have an engine application that loads Map Service layers. The layers are connected to a SQL SDE Geodatabase.
How can i detected that the data source for a layer (or sublayer) is no longer valid?

Thank you!