AnsweredAssumed Answered

Get broken sde datasource name

Question asked by prashant_84k on Dec 16, 2014
Latest reply on Dec 16, 2014 by prashant_84k

Hi All,

 

I am trying to change sde datasource using arcobject.If SDE connection is working then i can retrieve datasource name using IDataLayer interface.

 

IDataLayer dataLayer = (IDataLayer)sourceLyr;

               

IName dsName= dataLayer.DataSourceName;

 

But if connection is broken(red mark in TOC layer) then datasource is returning null value. My datasource name and layer name in TOC is different.

 

How to retrieve broken dataset name? Any help would be appreciated.

Outcomes