<?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: Error for JMP 15 users that JMP 16 PRO users don't have with querying a table with JMP addin Script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/483055#M72734</link>
    <description>&lt;P&gt;I am surprised that this function call ever works. It takes 3 arguments, not 4 arguments. The first argument is for the connection. The second argument is the SQL. The third and optional argument is the name of the resulting data table.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 12:05:36 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2022-04-29T12:05:36Z</dc:date>
    <item>
      <title>Error for JMP 15 users that JMP 16 PRO users don't have with querying a table with JMP addin Script</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/482955#M72727</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bjbreitling_0-1651172780710.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42110i650F9FF4437DB71D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bjbreitling_0-1651172780710.png" alt="bjbreitling_0-1651172780710.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have JMP 16 but and have no issues with my JMP addin query working. JMP 15 users have an error when running the below and don't get the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open Database(
    "DSN=PI SQL Connection Lab;Description=PI SQL Connection Lab;UID=;Trusted_Connection=Yes;APP=JMP;WSID=SFX-5GCN2M1;DATABASE=LabData",
    "select t.* from (select t.*, row_number() over (partition by SiteID, TimeStamp order by (select null)) as seqnum FROM dbo.CornOilManualEntryDataAvgsAll t WHERE t.\!"TimeStamp\!" &amp;gt;= DATEADD(d, -365, getdate())) t where seqnum = 1",
    " Year dbo.CornOilManualEntryDataAvgsAll ORDER BY dbo.CornOilManualEntryDataAvgsAll.TimeStamp, dbo.CornOilManualEntryDataAvgsAll.SiteID",
    "Year Manual Data"
);
// Change column info: TimeStamp
Data Table( "Year Manual Data" ):TimeStamp &amp;lt;&amp;lt; Data Type(
    Numeric,
    Format( "yyyy-mm-ddThh:mm:ss", 19, 0 ),
    Input Format( "yyyy-mm-ddThh:mm:ss", 0 ),
    Format( "m/d/y h:m", 19 )
) &amp;lt;&amp;lt; Set Modeling Type( "Continuous" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:57:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/482955#M72727</guid>
      <dc:creator>bjbreitling</dc:creator>
      <dc:date>2023-06-09T16:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error for JMP 15 users that JMP 16 PRO users don't have with querying a table with JMP addin Script</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/483055#M72734</link>
      <description>&lt;P&gt;I am surprised that this function call ever works. It takes 3 arguments, not 4 arguments. The first argument is for the connection. The second argument is the SQL. The third and optional argument is the name of the resulting data table.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:05:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/483055#M72734</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-04-29T12:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error for JMP 15 users that JMP 16 PRO users don't have with querying a table with JMP addin Script</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/483200#M72748</link>
      <description>&lt;P&gt;Seem very weird that error has table name as &lt;STRONG&gt;All&lt;/STRONG&gt; Manual Data and script is using &lt;STRONG&gt;Year&lt;/STRONG&gt; Manual data. Year somehow gets replaced with All in JMP15?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/file-functions.shtml?os=win&amp;amp;source=application#ww4960001" target="_blank" rel="noopener"&gt;documentation (jmp.com)&lt;/A&gt; there seems to be two optional arguments, visibility and table name. &lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P class="S1SynObj"&gt;Open Database(dataSourceName|"Connect Dialog", "SELECT ..."|"SQLFILE..."|tableName, &amp;lt;"Invisible"|"Private"&amp;gt;, &amp;lt;outputTableName&amp;gt;)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 17:48:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/483200#M72748</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-04-29T17:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error for JMP 15 users that JMP 16 PRO users don't have with querying a table with JMP addin Script</title>
      <link>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/483996#M72837</link>
      <description>&lt;P&gt;Open Database says it returns a DataTable.&lt;/P&gt;
&lt;P&gt;That is, in JMP 15 can you do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open Database(
    "DSN=PI SQL Connection Lab;Description=PI SQL Connection Lab;UID=;Trusted_Connection=Yes;APP=JMP;WSID=SFX-5GCN2M1;DATABASE=LabData",
    "select t.* from (select t.*, row_number() over (partition by SiteID, TimeStamp order by (select null)) as seqnum FROM dbo.CornOilManualEntryDataAvgsAll t WHERE t.\!"TimeStamp\!" &amp;gt;= DATEADD(d, -365, getdate())) t where seqnum = 1",
    " Year dbo.CornOilManualEntryDataAvgsAll ORDER BY dbo.CornOilManualEntryDataAvgsAll.TimeStamp, dbo.CornOilManualEntryDataAvgsAll.SiteID",
    "Year Manual Data"
);
// Change column info: TimeStamp
dt:TimeStamp &amp;lt;&amp;lt; Data Type(
    Numeric,
    Format( "yyyy-mm-ddThh:mm:ss", 19, 0 ),
    Input Format( "yyyy-mm-ddThh:mm:ss", 0 ),
    Format( "m/d/y h:m", 19 )
) &amp;lt;&amp;lt; Set Modeling Type( "Continuous" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2022 19:13:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-for-JMP-15-users-that-JMP-16-PRO-users-don-t-have-with/m-p/483996#M72837</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2022-05-03T19:13:51Z</dc:date>
    </item>
  </channel>
</rss>

