<?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 Saving to a SQL Database from a JMP Table:  Does the Original SQL Table Have to be Replaced? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-to-a-SQL-Database-from-a-JMP-Table-Does-the-Original-SQL/m-p/46926#M26741</link>
    <description>&lt;P&gt;I would like to add data to my SQL database directly from JMP tables without modifying column deisgnations already created in my SQL database.&amp;nbsp; However, when I use the "Save to Database" script that is provided in JMP, the JMP table completely replaces the table in the SQL database.&amp;nbsp; This modifies all of the column properties in the database table (e.g., changing an Integer designation to Float).&amp;nbsp; Is there any way to just append or&amp;nbsp;add new JMP data&amp;nbsp;to an existing table in a SQL database--instead of completely overwriting and replacing the DB table?&amp;nbsp; Can column designations for things like variable type and database keys be preserved when adding data directly from JMP to a SQL database?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 20:12:33 GMT</pubDate>
    <dc:creator>SRoweton</dc:creator>
    <dc:date>2017-11-08T20:12:33Z</dc:date>
    <item>
      <title>Saving to a SQL Database from a JMP Table:  Does the Original SQL Table Have to be Replaced?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-to-a-SQL-Database-from-a-JMP-Table-Does-the-Original-SQL/m-p/46926#M26741</link>
      <description>&lt;P&gt;I would like to add data to my SQL database directly from JMP tables without modifying column deisgnations already created in my SQL database.&amp;nbsp; However, when I use the "Save to Database" script that is provided in JMP, the JMP table completely replaces the table in the SQL database.&amp;nbsp; This modifies all of the column properties in the database table (e.g., changing an Integer designation to Float).&amp;nbsp; Is there any way to just append or&amp;nbsp;add new JMP data&amp;nbsp;to an existing table in a SQL database--instead of completely overwriting and replacing the DB table?&amp;nbsp; Can column designations for things like variable type and database keys be preserved when adding data directly from JMP to a SQL database?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 20:12:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-to-a-SQL-Database-from-a-JMP-Table-Does-the-Original-SQL/m-p/46926#M26741</guid>
      <dc:creator>SRoweton</dc:creator>
      <dc:date>2017-11-08T20:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Saving to a SQL Database from a JMP Table:  Does the Original SQL Table Have to be Replaced?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-to-a-SQL-Database-from-a-JMP-Table-Does-the-Original-SQL/m-p/46934#M26746</link>
      <description>&lt;P&gt;If you want to add rows to a table don't use &lt;STRONG&gt;SAVE TO DATABASE&lt;/STRONG&gt;.&amp;nbsp; &amp;nbsp;You can use INSERT INTO or INSERT ALL to add rows to an existing database table.&amp;nbsp; INSERT ALL is useful for inserting large numbers of rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a simple insert example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dbc = create database connection("YOUR-CONNECTION-STRING-GOES-HERE");
one_id = "1121121";
sql = evalinsert(
"INSERT INTO myschema.my_activity_log 
		(user_created, date_created, my_section, activity) 
 VALUES ('^one_id^', CURRENT_DATE, 'DASHBOARD', 'REFRESH')"); 
// Run this SQL.  No table is retrieved as it's a simple insert
execute sql(dbc, sql);
// Close the database connection - end of initialization queries
Close Database Connection(dbc);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can find more information on the INSERT ALL command (for Oracle) here:&amp;nbsp;&lt;A href="https://www.techonthenet.com/oracle/questions/insert_rows.php" target="_blank"&gt;https://www.techonthenet.com/oracle/questions/insert_rows.php&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(edit to correct JSL)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:28:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-to-a-SQL-Database-from-a-JMP-Table-Does-the-Original-SQL/m-p/46934#M26746</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-11-09T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Saving to a SQL Database from a JMP Table:  Does the Original SQL Table Have to be Replaced?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-to-a-SQL-Database-from-a-JMP-Table-Does-the-Original-SQL/m-p/47321#M26987</link>
      <description>Thank you for your help!</description>
      <pubDate>Thu, 16 Nov 2017 15:31:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-to-a-SQL-Database-from-a-JMP-Table-Does-the-Original-SQL/m-p/47321#M26987</guid>
      <dc:creator>SRoweton</dc:creator>
      <dc:date>2017-11-16T15:31:45Z</dc:date>
    </item>
  </channel>
</rss>

