<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Metadata table registered twice in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667372#M19370</link>
    <description>&lt;P&gt;If some people can not be trusted to handle certain tools responsibly, then you need to take away their access to these tools. SAS metadata provides ways to do this (if one of the OOTB roles does not cover it, create a custom role where these functions are disabled).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be sufficient to send an email to the person(s) in question, with CC to all developers, where you clearly explain that such things MUST NOT BE DONE and why. Being notified rather publicly that one did something bad can do wonders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the world of being a systems administrator. Some times we need to be the Bastard Operator From Hell.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 07:48:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-07-07T07:48:53Z</dc:date>
    <item>
      <title>Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/666961#M19363</link>
      <description>All,&lt;BR /&gt;If a table registered twice in metadata libraray In different locations. how would it know which one to reference through libname statement? Proper DI job works fine as we drag and drop the tables.&lt;BR /&gt;Ex:If table registered twice, say initial one with 5 columns, new one (metadata table updated) with 7&lt;BR /&gt;how would it know which one to reference?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;libname Test meta library=Test;&lt;BR /&gt;proc sql ;&lt;BR /&gt;select * from Test.table ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;SS</description>
      <pubDate>Sat, 04 Jul 2020 19:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/666961#M19363</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2020-07-04T19:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/666972#M19364</link>
      <description>&lt;P&gt;Avoid duplicate metadata names as much as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;table registered twice in metadata libraray In different locations&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;Is it even possible to have the exactly same named table metadata object linked to the same metadata library object?&lt;/P&gt;
&lt;P&gt;You can have two table metadata objects with the same metadata name linked to two different libraries but I'm not sure that SAS will let you link them to the same library. Can you please try and confirm that this is even possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;Proper DI job works fine&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;The DI job uses metadata IDs (which are always unique) so it will pick-up the correct metadata object to generate the code. BUT: If you have same named metadata objects then make sure that you always pack "everything" when creating a .spk for moving a job to another environment as there linking to objects happens over the metadata name (if the object is not in the package). You would get a prompt asking to which table to link - but it can be cumbersome to find the correct metadata table object if there are multiple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"select * from test.table"&lt;/P&gt;
&lt;P&gt;It depends how the library for "test" is defined in SAS Metadata. If you're using the &lt;A href="https://documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=n16jhf959jkakan1ws91xs7qo26e.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;META&lt;/A&gt; engine or &lt;A href="https://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=n1nesjvtxu7783n1pveml8ct4txk.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Metadata Bound Libraries&lt;/A&gt; then SAS will check the metadata table object and if there is a duplicate the way you describe it (which I believe is not possible) then yes, that could cause issues.&lt;/P&gt;
&lt;P&gt;In any other case the query executes only against the physical table so duplicate table metadata objects (same metadata name) wouldn't have any impact.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 02:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/666972#M19364</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-07-05T02:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/666996#M19365</link>
      <description>Yes, it is possible to have the exactly same named table metadata object linked to the same metadata library object in multiple/different locations.&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Jul 2020 05:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/666996#M19365</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2020-07-05T05:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667001#M19366</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93352"&gt;@sathya66&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes, it is possible to have the exactly same named table metadata object linked to the same metadata library object in multiple/different locations.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then better get that cleaned up. That's just asking for trouble.&lt;/P&gt;
&lt;P&gt;I believe if using the library meta engine then SAS just checks for a matching table metadata name and will likely use the first one it finds - meaning that if that's then the one with "missing" columns that's what you'll get.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 07:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667001#M19366</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-07-05T07:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667363#M19368</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93352"&gt;@sathya66&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;If a table registered twice in metadata libraray In different locations.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;DO NOT DO THAT.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Even if you tricked SAS into having two separate metadata definitions for the same physical object, this is&amp;nbsp;&lt;STRONG&gt;not recommended practice at all&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Any change implemented via one metadata object will not reflect in the other one, and WILL cause trouble.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Clean that up &lt;STRONG&gt;NOW&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 06:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667363#M19368</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-07T06:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667371#M19369</link>
      <description>&lt;P&gt;Yes, I agree. As developers have access to create/register metadata objects(libraries, tables ,jobs,etc). They are duplicating the things.&lt;BR /&gt;is there any way, we can restrict to do that or can we create a report on daily basis to check for duplicate objects (I found these mdsecgo or mdsecds macros are useful or is there any easy method that I can use).&lt;BR /&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 07:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667371#M19369</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2020-07-07T07:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667372#M19370</link>
      <description>&lt;P&gt;If some people can not be trusted to handle certain tools responsibly, then you need to take away their access to these tools. SAS metadata provides ways to do this (if one of the OOTB roles does not cover it, create a custom role where these functions are disabled).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be sufficient to send an email to the person(s) in question, with CC to all developers, where you clearly explain that such things MUST NOT BE DONE and why. Being notified rather publicly that one did something bad can do wonders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the world of being a systems administrator. Some times we need to be the Bastard Operator From Hell.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 07:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667372#M19370</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-07T07:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667602#M19375</link>
      <description>&lt;P&gt;You can only enforce standards if you define the standards so first step is to define such standards and distribute them to whoever is allowed to create metadata objects. Then you can start to control and enforce.&lt;/P&gt;
&lt;P&gt;For the control/reporting bit: I believe you would have to write your own metadata queries for this but there must already be bits and pieces around for this in whitepapers, samples in the documentation and also here in other discussions. If you get stuck with writing such a query then eventually ask a new question for this, explain what you have and what you need.&lt;/P&gt;
&lt;P&gt;Just as an idea:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pull out name and path for defined metadata objects like job, deployed job, library, table, custom transformation.&lt;/P&gt;
&lt;P&gt;For tables: Also get information to what library and physical table it links to.&lt;/P&gt;
&lt;P&gt;For libraries: Get some of the connection info like engine and path (not sure what "path" would be for databases and how much variation there is in metadata - schema, db server, ?).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 00:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667602#M19375</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-07-08T00:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata table registered twice</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667644#M19377</link>
      <description>yes, we have standards in place but we can't force some crazy users to use them.&lt;BR /&gt;Thanks all for your help.&lt;BR /&gt;I will accept this as a solution and close this.</description>
      <pubDate>Wed, 08 Jul 2020 07:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Metadata-table-registered-twice/m-p/667644#M19377</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2020-07-08T07:30:42Z</dc:date>
    </item>
  </channel>
</rss>

