<?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: Using Create Database Connection for a ODBC Database in JMP 17 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/643197#M83984</link>
    <description>&lt;P&gt;Remove&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;ODBC:&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From your connection string.&lt;/P&gt;
&lt;P&gt;It looks like you copied a connection string from the QueryBuilder to &amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Create Database Connection&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;ODBC: is a directive in a QueryBuilder connection string that tells it to use, in this case, ODBC.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For completeness, QueryBuilder can have&lt;/P&gt;
&lt;P&gt;JMP:&lt;/P&gt;
&lt;P&gt;SAS:&lt;/P&gt;
&lt;P&gt;ODBC:&lt;/P&gt;
&lt;P&gt;prefixes in a Query Builder script that specify the type of connection string that is represented.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 19:46:38 GMT</pubDate>
    <dc:creator>bryan_boone</dc:creator>
    <dc:date>2023-06-22T19:46:38Z</dc:date>
    <item>
      <title>Using Create Database Connection for a ODBC Database in JMP 17</title>
      <link>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/635672#M83381</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a JSL script that uses the "Create Database Connection" function to connect to an ODBC database and executes an SQL query (see below). This script was working on JMP 16, however I received a new computer and upgraded to JMP 17 and now I am receiving the attached error ("Send Expects Scriptable Object in access or evaluation of 'Send', dt1 &amp;lt;&amp;lt; Show WIndow(0)").&amp;nbsp;I've performed some debugging and it looks like the Execute SQL isn't producing any data, so the Show Window function is trying to hide a table that doesn't exist. I've verified directly in the database that the query does generate data.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;database = "DB";
server = "server";
user = "user";
pass = "pass";

conn = Create Database Connection ("ODBC:Description=" || database || ";DRIVER=SQL Server Native Client 11.0;SERVER=" || server || ";UID=" || user || ";PWD=" || pass || ";APP=JMP;Database=" || database || ";");
strg = "query string";
dt1 = Execute SQL(conn,strg,"Table Title");
dt1 &amp;lt;&amp;lt; Show Window(0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:10:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/635672#M83381</guid>
      <dc:creator>Austin</dc:creator>
      <dc:date>2023-06-09T16:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Create Database Connection for a ODBC Database in JMP 17</title>
      <link>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/635705#M83387</link>
      <description>&lt;P&gt;Some possibilities:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You don't have the correct ODBC driver on the new computer.&amp;nbsp; Make sure to "match the hatch".&amp;nbsp; I.e. if you have 32-bit JMP use a 32-bit driver.&amp;nbsp; Similarly if you have 64-bit JMP you'll need the 64-bit driver.&lt;/LI&gt;
&lt;LI&gt;Check the value of &lt;STRONG&gt;conn&lt;/STRONG&gt; after the call to &lt;STRONG&gt;Create Database Connection&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Create a connection manually with File &amp;gt; Database &amp;gt; Open Table&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I assume "query string" isn't your actual query.&lt;/P&gt;
&lt;P&gt;If that doesn't help try tech support.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 18:06:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/635705#M83387</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2023-05-25T18:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Create Database Connection for a ODBC Database in JMP 17</title>
      <link>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/636073#M83419</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cdbc.jpg" style="width: 780px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53163iC5ACEAD520DF4C2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="cdbc.jpg" alt="cdbc.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4550"&gt;@pmroz&lt;/a&gt;&amp;nbsp;points out, I think the problem might be in your definition of 'conn'.&amp;nbsp; According to the Scripting Index, the Create Database Connection uses a different syntax that what you've shown.&amp;nbsp; Instead of "ODBC:Description=", it looks like it should be "DSN=".&amp;nbsp; See the picture I've attached here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into a similar problem when I started using the Create Database Connection function because I was also including the "ODBC:Description=" syntax which didn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 14:24:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/636073#M83419</guid>
      <dc:creator>tbidwell</dc:creator>
      <dc:date>2023-05-26T14:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Create Database Connection for a ODBC Database in JMP 17</title>
      <link>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/643197#M83984</link>
      <description>&lt;P&gt;Remove&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;ODBC:&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From your connection string.&lt;/P&gt;
&lt;P&gt;It looks like you copied a connection string from the QueryBuilder to &amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Create Database Connection&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;ODBC: is a directive in a QueryBuilder connection string that tells it to use, in this case, ODBC.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For completeness, QueryBuilder can have&lt;/P&gt;
&lt;P&gt;JMP:&lt;/P&gt;
&lt;P&gt;SAS:&lt;/P&gt;
&lt;P&gt;ODBC:&lt;/P&gt;
&lt;P&gt;prefixes in a Query Builder script that specify the type of connection string that is represented.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 19:46:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-Create-Database-Connection-for-a-ODBC-Database-in-JMP-17/m-p/643197#M83984</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2023-06-22T19:46:38Z</dc:date>
    </item>
  </channel>
</rss>

