<?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: How can I reload data from a SQL table? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-reload-data-from-a-SQL-table/m-p/6027#M6026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, yes I did changed those parameters, for reasons I'm sure you know &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.jmp.com/5.0.2/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;. I ended up doing the long route, created another file in jmp and then made the updates within jmp. But I still prefer the right way of doing it (I think), which is just to refresh the jmp table with the ones from the sql table. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 18:58:53 GMT</pubDate>
    <dc:creator>juvethski</dc:creator>
    <dc:date>2012-11-29T18:58:53Z</dc:date>
    <item>
      <title>How can I reload data from a SQL table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-reload-data-from-a-SQL-table/m-p/6025#M6024</link>
      <description>&lt;P&gt;Hi, first of all, I am so glad to find this forum and hopefully in the future it will be my turn to help other new users (like me). I am very new to JMP, and I inherited a set of JMP files and scripts that I need to ramp up on very quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a file that has ODBC connection to a SQL server and accesses a SQL table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SQL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;select a.*
from table1 a
join table2 g
on a.col1=g.col1
where [Criteria is met]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the JSL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open Database("DRIVER=SQL Server;SERVER=server\server;UID=;APP=2007 Microsoft Office system;WSID=comp_name;DATABASE=database;Trusted_Connection=Yes", "select *
from table1 a
join table2 g
on a.col1=g.col1
where [Criteria is met]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the online help, it says that there will be a SOURCE that can be executed to re-import the data:&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P&gt;When you import data from an ODBC database, within the data table, note the following:&lt;/P&gt;
&lt;P&gt;There is a script called Source that you can run to re-import and refresh the data.&lt;/P&gt;
&lt;P&gt;A table variable is added that might contain user ID and password information. There is a JSL-only preference that can be set to prevent including this possibly sensitive information. See the Scripting Guide for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I try to run the script, it asks or looks for a file. Why is it looking for a file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 14:46:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-reload-data-from-a-SQL-table/m-p/6025#M6024</guid>
      <dc:creator>juvethski</dc:creator>
      <dc:date>2017-11-06T14:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reload data from a SQL table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-reload-data-from-a-SQL-table/m-p/6026#M6025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd recommend first connecting to the database manually to make sure you have access from your machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In the JMP menu, select "File -&amp;gt; Database -&amp;gt; Open Table..."&amp;nbsp; That will open a dialog box called "Database Operations."&amp;nbsp; Choose "Connect" and check the "Machine Data Source" or "File Data Source" tabs for the connection that matches the information in your "Open Database" string that you pasted above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you can successfully connect through this dialog, then connecting via script should be easy, but I suspect either the database or the connection parameters have changed since you inherited the file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I'm assuming that you intentionally obscured the connection parameters and SQL query above.&amp;nbsp; I hope no one created a database called "database" on a computer called "comp_name" with tables called "table1" and "table2"! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 18:39:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-reload-data-from-a-SQL-table/m-p/6026#M6025</guid>
      <dc:creator>afterword</dc:creator>
      <dc:date>2012-11-29T18:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reload data from a SQL table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-reload-data-from-a-SQL-table/m-p/6027#M6026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, yes I did changed those parameters, for reasons I'm sure you know &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.jmp.com/5.0.2/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;. I ended up doing the long route, created another file in jmp and then made the updates within jmp. But I still prefer the right way of doing it (I think), which is just to refresh the jmp table with the ones from the sql table. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 18:58:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-reload-data-from-a-SQL-table/m-p/6027#M6026</guid>
      <dc:creator>juvethski</dc:creator>
      <dc:date>2012-11-29T18:58:53Z</dc:date>
    </item>
  </channel>
</rss>

