{"id":2707,"date":"2018-05-17T09:39:57","date_gmt":"2018-05-17T07:39:57","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=2707"},"modified":"2018-06-07T08:31:04","modified_gmt":"2018-06-07T06:31:04","slug":"sparx-systems-enterprise-architect-sql-to-get-all-links-with-their-start-and-end-objects-and-a-tagged-value","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=2707","title":{"rendered":"Sparx Systems Enterprise Architect: SQL to get all Links with their start and end objects and a tagged value"},"content":{"rendered":"<h1>Problem<\/h1>\n<p>A SQL statement is needed, that returns a list of all link relations with start and end object name. Additionally a tagged value (here it is called &#8218;Object identifier&#8216;) should be appended<\/p>\n<h1>Approach<\/h1>\n<p>Usage of MDB Plus<\/p>\n<h1>Solution<\/h1>\n<p>Note: If you do not need tagged values, you can customize the following Access \/ .eap-File Statement in the way that you reduce it by leaving out the last 2 LEFT JOINs (and don&#8217;t forget to remove the Columns from the Select clause).<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT      objstart.&#x5B;Object_ID] As EAIDSource,\r\n            objstart.&#x5B;Name] AS EANameSource,\r\n            objpropstart.&#x5B;Value] AS DoorsSoruceObjectID,\r\n            tconn.&#x5B;Connector_ID] AS EAConnectorID,\r\n            tconn.&#x5B;Direction] AS EADirection,\r\n            tconn.&#x5B;Connector_Type] AS EAConnectorType,\r\n            tconn.&#x5B;Stereotype] AS EAStereoType,\r\n            objend.&#x5B;Object_ID] AS EAIDTarget,\r\n            objend.&#x5B;Name] AS EANameTarget,\r\n            objpropende.&#x5B;Value] AS DoorsTargetObjectID\r\nFROM                                                                                          \r\n(((                                                              \r\n&#x5B;t_connector] tconn LEFT JOIN &#x5B;t_object] objstart ON tconn.&#x5B;Start_Object_ID]=objstart.&#x5B;Object_ID])\r\n                    LEFT JOIN &#x5B;t_object] objend ON tconn.&#x5B;End_Object_ID]=objend.&#x5B;Object_ID])                                                                           \r\n                    LEFT JOIN (SELECT &#x5B;Object_ID], &#x5B;Property], &#x5B;Value] FROM &#x5B;t_objectproperties] WHERE &#x5B;Property]=&quot;Object identifier&quot; ) objpropstart ON tconn.&#x5B;Start_Object_ID]=objpropstart.&#x5B;Object_ID] )\r\n                    LEFT JOIN (SELECT &#x5B;Object_ID], &#x5B;Property], &#x5B;Value] FROM &#x5B;t_objectproperties] WHERE &#x5B;Property]=&quot;Object identifier&quot; ) objpropende ON tconn.&#x5B;End_Object_ID]=objpropende.&#x5B;Object_ID]\r\n<\/pre>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D2707&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem A SQL statement is needed, that returns a list of all link relations with start and end object name. Additionally a tagged value (here it is called &#8218;Object identifier&#8216;) should be appended Approach Usage of MDB Plus Solution Note: If you do not need tagged values, you can customize the following Access \/ .eap-File &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=2707\" class=\"more-link\"><span class=\"screen-reader-text\">Sparx Systems Enterprise Architect: SQL to get all Links with their start and end objects and a tagged value<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,10,11,28,43],"tags":[],"class_list":["post-2707","post","type-post","status-publish","format-standard","hentry","category-access","category-datenbanken","category-ms-sql-server","category-sparx-systems-enterprise-architect","category-sql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-HF","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2707"}],"version-history":[{"count":1,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2707\/revisions"}],"predecessor-version":[{"id":2708,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2707\/revisions\/2708"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}