You can extract the fully qualified stereotype including the MDG name from the dreaded t_xref table
XrefID,Name,Type,Visibility,Namespace,Requirement,Constraint,Behavior,Partition,Description,Client,Supplier,Link,
{B8B468ED-8D4F-415c-8130-9108013D6A2C},Stereotypes,element property,Public, , , , ,0,@STEREO;Name=FunctionalRequirement;FQName=EAREQ::FunctionalRequirement;@ENDSTEREO;,{00196C9C-8221-4405-A5C3-616FC03FAA52},<none>, ,
The t_xref column is
Description and the FQ stereotype is held in a; delimited string, for example
FQName=EAREQ::FunctionalRequirement;So, to discover the MDG for a particular element (or connector)
1) Create a SELECT query that extracts t_xref.Description from the join of t_object and t_xref, using t_object.ea_guid and t_xref.Client
2) Extract you MDG by extracting the necessary substring.
An example of a SQL query to perform the above (without the substring extraction) is:
SELECT t_xref.Description
FROM t_object, t_xref
WHERE t_object.ea_guid = t_xref.Client
AND t_object.ea_guid = 'GUID of your element /connector here'Other methods of joining tables are available
Phil