<?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: SQL script to return filevault filename for the latest version of a cad file. in Windchill</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357190#M41948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy and Chris - thanks for the tips, Im getting closer but still not there yet&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have a sqlplus query that I need to locate all iterations except for the lastiteration of the last rev.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thinking of using a MAX function for the versionsortida2versioninfo but can quite get the syntax correct.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Any ideas of how to modify the code below to find all but the last iteration of the last rev ?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;select&lt;BR /&gt;epmdocumentmaster.name,&lt;BR /&gt;epmdocument.statestate,&lt;BR /&gt;epmdocument.latestiterationinfo,&lt;BR /&gt;epmdocument.versionida2versioninfo,&lt;BR /&gt;epmdocument.iterationida2iterationinfo,&lt;BR /&gt;epmdocument.IDA2A2,&lt;BR /&gt;epmdocumentmaster.IDA2A2,&lt;BR /&gt;epmdocument.IDA3MASTERREFERENCE,&lt;BR /&gt;epmdocument.VERSIONSORTIDA2VERSIONINFO "VSORT"&lt;BR /&gt;from&lt;BR /&gt;epmdocument,epmdocumentmaster&lt;BR /&gt;where&lt;BR /&gt;epmdocumentmaster.ida2a2=epmdocument.ida3masterreference&lt;BR /&gt;and&lt;BR /&gt;epmdocumentmaster.name like '999-%.drw'&lt;BR /&gt;/* epmdocument.latestiterationinfo=0 */&lt;BR /&gt;order by epmdocument.ida2a2&lt;BR /&gt;;&lt;BR /&gt;exit&lt;/P&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 21:39:43 GMT</pubDate>
    <dc:creator>ejhlti</dc:creator>
    <dc:date>2012-11-27T21:39:43Z</dc:date>
    <item>
      <title>SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357182#M41940</link>
      <description>Is there any way to find the filevault location and filename for the latest version of a cad filename?Joe</description>
      <pubDate>Wed, 02 May 2018 15:11:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357182#M41940</guid>
      <dc:creator>colmacpro</dc:creator>
      <dc:date>2018-05-02T15:11:45Z</dc:date>
    </item>
    <item>
      <title>SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357183#M41941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See attached query builder report for a WTDoc's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can build similar for EPM Doc's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 23:28:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357183#M41941</guid>
      <dc:creator>MikeLockwood</dc:creator>
      <dc:date>2012-11-19T23:28:31Z</dc:date>
    </item>
    <item>
      <title>RE: SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357184#M41942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to do it from SQLPlus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 01:03:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357184#M41942</guid>
      <dc:creator>colmacpro</dc:creator>
      <dc:date>2012-11-20T01:03:53Z</dc:date>
    </item>
    <item>
      <title>SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357185#M41943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Designation: Non-Finmeccanica&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you might have Intralink 9.x and don't have easy access&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the query builder functionality. I have 2 SQLPlus scripts that PTC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tech support helped me with and they might be helpful. One just reports&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EPMDoc info and the other lists vault information. I've attached the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob Mills&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Engineering Software Administrator&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DRS Integrated Defense Systems and Services&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DRS Technologies, Inc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;645 Anchors Street&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fort Walton Beach, Florida 32548&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;850-302-3241&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;A href="http://www.drs.com" target="_blank"&gt;www.drs.com&lt;/A&gt; &lt;/SPAN&gt;&lt;A href="http://www.drs.com" style="&amp;gt;http://www.drs.com&amp;lt;/a&amp;gt; &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt;&amp;lt;/body&amp;gt;" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 21:02:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357185#M41943</guid>
      <dc:creator>bmills</dc:creator>
      <dc:date>2017-10-26T21:02:43Z</dc:date>
    </item>
    <item>
      <title>RE: SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357186#M41944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everybody for the responses. You guys have given me plenty to work with.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 19:38:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357186#M41944</guid>
      <dc:creator>colmacpro</dc:creator>
      <dc:date>2012-11-20T19:38:01Z</dc:date>
    </item>
    <item>
      <title>RE: SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357187#M41945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone out there used a sqlplus query to locate either of the following ?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1) The latest iteration of the last revision.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2) All iterations except for the last iteration of the last revision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 20:02:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357187#M41945</guid>
      <dc:creator>ejhlti</dc:creator>
      <dc:date>2012-11-21T20:02:14Z</dc:date>
    </item>
    <item>
      <title>EXTERNAL: SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357188#M41946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to grab latest version based off the VERSIONSORTIDA2VERSIONINFO column. That's a varchar2, but you can grab those that are equal to '000001' (at least that's the pattern here, I'm assuming it's OOTB) - and it should return the latest rev&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, there's a column called LATESTITERATIONINFO, that'll get you the latest/not latest iteration. It's a 0/1 number field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 20:19:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357188#M41946</guid>
      <dc:creator>crosato</dc:creator>
      <dc:date>2012-11-21T20:19:25Z</dc:date>
    </item>
    <item>
      <title>SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357189#M41947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On 11/21/12 13:02, Ed Howanice wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Has anyone out there used a sqlplus query to locate either of the following ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; 1) The latest iteration of the last revision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For latest iteration of the latest revision I use this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     select ed.ida2a2, edm.cadname NAME, ed.statestate RELEASE,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         ed.versionida2versioninfo REVISION,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         ed.iterationida2iterationinfo ITERATION,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         cast(ed.createstampa2 as timestamp) \"CREATED\",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         cast(ed.modifystampa2 as timestamp) \"MODIFIED\",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         cast(ed.updatestampa2 as timestamp) \"UPDATED\",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         ed.ida3b10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     from&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         epmdocumentmaster edm, epmdocument ed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     where&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         edm.cadname = '&amp;lt;yourepmdocumentnamegoeshere&amp;gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         and ed.ida3masterreference = edm.ida2a2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         and ed.latestiterationinfo = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         and ed.statecheckoutinfo != 'wrk'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     order by \"MODIFIED\" desc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where rownum=1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; 2) All iterations except for the last iteration of the last revision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; -----End Original Message-----&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Randy Jones&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Systems Administrator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Great Plains Mfg., Inc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1525 E North St&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PO Box 5060&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Salina, KS USA 67401&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;email: -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Phone: 785-823-3276&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;   Fax: 785-667-2695&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 21:03:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357189#M41947</guid>
      <dc:creator>RandyJones</dc:creator>
      <dc:date>2017-10-26T21:03:28Z</dc:date>
    </item>
    <item>
      <title>RE: SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357190#M41948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy and Chris - thanks for the tips, Im getting closer but still not there yet&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have a sqlplus query that I need to locate all iterations except for the lastiteration of the last rev.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thinking of using a MAX function for the versionsortida2versioninfo but can quite get the syntax correct.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Any ideas of how to modify the code below to find all but the last iteration of the last rev ?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;select&lt;BR /&gt;epmdocumentmaster.name,&lt;BR /&gt;epmdocument.statestate,&lt;BR /&gt;epmdocument.latestiterationinfo,&lt;BR /&gt;epmdocument.versionida2versioninfo,&lt;BR /&gt;epmdocument.iterationida2iterationinfo,&lt;BR /&gt;epmdocument.IDA2A2,&lt;BR /&gt;epmdocumentmaster.IDA2A2,&lt;BR /&gt;epmdocument.IDA3MASTERREFERENCE,&lt;BR /&gt;epmdocument.VERSIONSORTIDA2VERSIONINFO "VSORT"&lt;BR /&gt;from&lt;BR /&gt;epmdocument,epmdocumentmaster&lt;BR /&gt;where&lt;BR /&gt;epmdocumentmaster.ida2a2=epmdocument.ida3masterreference&lt;BR /&gt;and&lt;BR /&gt;epmdocumentmaster.name like '999-%.drw'&lt;BR /&gt;/* epmdocument.latestiterationinfo=0 */&lt;BR /&gt;order by epmdocument.ida2a2&lt;BR /&gt;;&lt;BR /&gt;exit&lt;/P&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 21:39:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357190#M41948</guid>
      <dc:creator>ejhlti</dc:creator>
      <dc:date>2012-11-27T21:39:43Z</dc:date>
    </item>
    <item>
      <title>SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357191#M41949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, MAX is useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how I do it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  select epm.ida2a2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        ,epm.documentnumber&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        ,epm.name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        ,epm.version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        ,decode(decode(epm.revisionsort, epm.max_revisionsort, 1, 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;               ,1, decode(epm.latestiterationinfo, 1, 'Yes', 'No')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;               ,'No')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;         latest_version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        ,to_number(epm.revisionsort || regexp_substr(epm.version, '[[:digit:]]+'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;            version_sort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    from (select  e.ida3d2iterationinfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,e.ida2a2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,em.documentnumber&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,em.name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,e.versionsortida2versioninfo revisionsort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,(select max(versionsortida2versioninfo)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                     from epmdocument mr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                    where mr.ida3masterreference = e.ida3masterreference)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                     max_revisionsort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,   e.versionida2versioninfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                  || '.'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                  || e.iterationida2iterationinfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                     version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,e.latestiterationinfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;                 ,e.statestate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;             from epmdocument e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;       inner join epmdocumentmaster em&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;               on e.ida3masterreference = em.ida2a2) epm)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;   where latest_version = 'Yes'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;     and name like '999-%.drw'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;order by ida2a2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;joe bell&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CM Application Administrator&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 23:51:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357191#M41949</guid>
      <dc:creator>bellj</dc:creator>
      <dc:date>2012-11-27T23:51:16Z</dc:date>
    </item>
    <item>
      <title>RE: SQL script to return filevault filename for the latest version of a cad file.</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357192#M41950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the responses that I recieved I bulit the SQL script below to create a text file to include with my backups.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The problem is that there are no family table generics included in the query results. What seems to be weird is that the instances of the family table models have file associated with them.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Does anybody know what is wrong with the query?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="&amp;gt;The following SQL is used to find Vault locations of Model Files&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;SET PAGES 0&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;set echo off&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;SET FEED OFF&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;SET HEAD OFF&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;SET VERI OFF&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;SET ARRAYSIZE 1&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;spool d:\modelfilevaultlocations.txt&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;select&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; epmdocumentmaster.cadname || '|'&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;|| fvitem.uniquesequencenumber || '|'&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;|| versionida2versioninfo || '|'&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;|| iterationida2iterationinfo|| '|'&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;|| fvmount.path || '\'&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;|| trim(to_char(fvitem.uniquesequencenumber,'0000000000000x')) as VaultName&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;FROM&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; epmdocument&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; ,holdertocontent&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; ,epmdocumentmaster&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; ,applicationdata&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; ,fvitem&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; ,fvfolder&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; ,fvmount&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;WHERE&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; epmdocument.ida2a2=holdertocontent.ida3a5&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; AND epmdocumentmaster.ida2a2= epmdocument.ida3masterreference&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; AND holdertocontent.ida3b5=applicationdata.ida2a2&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; AND applicationdata.ida3a5 = fvitem.ida2a2&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; AND fvitem.ida3a4 = fvfolder.ida2a2&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; AND fvmount.ida3a5 = fvfolder.ida2a2&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;ORDER BY epmdocumentmaster.cadname asc,&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; fvitem.uniquesequencenumber desc,&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; versionida2versioninfo desc,&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt; iterationida2iterationinfo desc;&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;SPOOL OFF&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;EXIT&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;&amp;lt;span style="&gt;The following is the output from the custom SQL&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;MyAssembly_1.asm|1185522|A|2|d:\ptc\FILEVAULT\filevault_Folder_24\000000001216f2&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;MyPart_1.prt|1185396|A|2|d:\ptc\FILEVAULT\filevault_Folder_24\00000000121674&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;MyPart_1.prt|947365|A|1|d:\ptc\FILEVAULT\filevault_Folder_19\000000000e74a5&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;MyPart_2.prt|947364|A|1|d:\ptc\FILEVAULT\filevault_Folder_19\000000000e74a4&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;MyPart_3.prt|947363|A|1|d:\ptc\FILEVAULT\filevault_Folder_19\000000000e74a3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 04:50:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/SQL-script-to-return-filevault-filename-for-the-latest-version/m-p/357192#M41950</guid>
      <dc:creator>colmacpro</dc:creator>
      <dc:date>2013-01-03T04:50:07Z</dc:date>
    </item>
  </channel>
</rss>

