<?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: to connect to database through SQL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/896654#M105682</link>
    <description>&lt;P&gt;Any chance to show step by step how to get the connection string?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2025 09:48:08 GMT</pubDate>
    <dc:creator>DualBison1041</dc:creator>
    <dc:date>2025-08-25T09:48:08Z</dc:date>
    <item>
      <title>to connect to database through SQL</title>
      <link>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/742812#M92264</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I would like to connect to the database through an SQL query.&lt;/P&gt;&lt;P&gt;I have written the JSL script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dt = Open Database (&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DRIVER = {SQL Server};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SERVER = HAISQLC162\HAISQLC162,3187&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UID = hw_tests_viewer&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PWD = ********&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DATABASE = HW_Chip_Tests;"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"SELECT * &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [HW_Chip_Tests].[viewer].[chip_tests_row_data_3m_v]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;where VID = 'S232NNC300578' "&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but received error note:&amp;nbsp; &lt;U&gt;Data source name not found and no default driver specified&lt;/U&gt;&lt;/P&gt;&lt;P&gt;what I did wrong?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1711971995870.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62927i7F2F380698C92BDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1711971995870.png" alt="Dennisbur_0-1711971995870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 11:48:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/742812#M92264</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2024-04-01T11:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: to connect to database through SQL</title>
      <link>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/742820#M92265</link>
      <description>&lt;P&gt;To me it looks like the connection string is in wrong format. Usually they look like something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how it exactly looks like depends on your database, your driver, settings on PC and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try to create the connection using JMPs query builder and extract the connection string from there (it will Use New SQL Query instead of Open Database which I would also suggest you use as that is the method which is supposed to be supported in the future of JMP). The connection string it creates will be a bit different as it might prefix it with ODBC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 12:21:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/742820#M92265</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-01T12:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: to connect to database through SQL</title>
      <link>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/743237#M92284</link>
      <description>&lt;P&gt;Not sure if it's easier but you can also try File &amp;gt; Database &amp;gt; Open Table.&amp;nbsp; You might need to create an ODBC user source.&amp;nbsp; Once you open a table from SQL Server, you can find the connection string under the red or green triangle (depends on which version of JMP you are using).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 12:59:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/743237#M92284</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2024-04-02T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: to connect to database through SQL</title>
      <link>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/896654#M105682</link>
      <description>&lt;P&gt;Any chance to show step by step how to get the connection string?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 09:48:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/896654#M105682</guid>
      <dc:creator>DualBison1041</dc:creator>
      <dc:date>2025-08-25T09:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: to connect to database through SQL</title>
      <link>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/906090#M106446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/75239"&gt;@DualBison1041&lt;/a&gt;&amp;nbsp;, yes there is a way to get the connection string, you can generate a JMP Database Query by:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;File =&amp;gt; Database =&amp;gt; Query Builder (or in JMP 19 File=&amp;gt; Connect to =&amp;gt; ODBC =&amp;gt; Query Builder&lt;/LI&gt;
&lt;LI&gt;select the connection you want (e.g. ODBC: new connection, computer data source ...)&lt;/LI&gt;
&lt;LI&gt;Next&lt;/LI&gt;
&lt;LI&gt;Build query&lt;/LI&gt;
&lt;LI&gt;then e.g. save modify script to script window will show you the connection string&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georg_0-1759743054754.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/84446i7FFF316E99998E17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1759743054754.png" alt="Georg_0-1759743054754.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 09:33:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/to-connect-to-database-through-SQL/m-p/906090#M106446</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2025-10-06T09:33:23Z</dc:date>
    </item>
  </channel>
</rss>

