<?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 How to automatically detect primary key and secondary key of SQLite when opening the db file directly in JMP 16? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-automatically-detect-primary-key-and-secondary-key-of/m-p/666462#M85457</link>
    <description>&lt;P&gt;Hi there, I'm using C# and EFCore to create a SQLite Database.&lt;/P&gt;&lt;P&gt;The code is from&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/ef/core/get-started/overview/first-app?tabs=netcore-cli" target="_blank"&gt;Getting Started - EF Core | Microsoft Learn,&lt;/A&gt;&amp;nbsp;and opening it&amp;nbsp;using File -&amp;gt; Database -&amp;gt; Query Builder automatically detects primary and foreign keys:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wenhan_0-1691460846847.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55633i6589A7FED1030218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wenhan_0-1691460846847.png" alt="Wenhan_0-1691460846847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I drag the file to JMP, the keys are not automatically detected, hence making joining tables painful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wenhan_1-1691461085704.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55634iC9D76930362A7EE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wenhan_1-1691461085704.png" alt="Wenhan_1-1691461085704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to let JMP 16 detect keys automatically when opening sqlite file in this way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2023 02:25:00 GMT</pubDate>
    <dc:creator>Wenhan</dc:creator>
    <dc:date>2023-08-08T02:25:00Z</dc:date>
    <item>
      <title>How to automatically detect primary key and secondary key of SQLite when opening the db file directly in JMP 16?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-automatically-detect-primary-key-and-secondary-key-of/m-p/666462#M85457</link>
      <description>&lt;P&gt;Hi there, I'm using C# and EFCore to create a SQLite Database.&lt;/P&gt;&lt;P&gt;The code is from&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/ef/core/get-started/overview/first-app?tabs=netcore-cli" target="_blank"&gt;Getting Started - EF Core | Microsoft Learn,&lt;/A&gt;&amp;nbsp;and opening it&amp;nbsp;using File -&amp;gt; Database -&amp;gt; Query Builder automatically detects primary and foreign keys:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wenhan_0-1691460846847.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55633i6589A7FED1030218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wenhan_0-1691460846847.png" alt="Wenhan_0-1691460846847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I drag the file to JMP, the keys are not automatically detected, hence making joining tables painful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wenhan_1-1691461085704.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55634iC9D76930362A7EE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wenhan_1-1691461085704.png" alt="Wenhan_1-1691461085704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to let JMP 16 detect keys automatically when opening sqlite file in this way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 02:25:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-automatically-detect-primary-key-and-secondary-key-of/m-p/666462#M85457</guid>
      <dc:creator>Wenhan</dc:creator>
      <dc:date>2023-08-08T02:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically detect primary key and secondary key of SQLite when opening the db file directly in JMP 16?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-automatically-detect-primary-key-and-secondary-key-of/m-p/667847#M85602</link>
      <description>&lt;P&gt;In this case, you'd want to use the ODBC driver for SQLite for key support.&lt;/P&gt;
&lt;P&gt;Can you create a wish list item for this since keys aren't currently supported in your scenario.&lt;/P&gt;
&lt;P&gt;Auto joins are suggested based on names and data types (when keys aren't known), but keys are definitely helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 13:51:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-automatically-detect-primary-key-and-secondary-key-of/m-p/667847#M85602</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2023-08-14T13:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically detect primary key and secondary key of SQLite when opening the db file directly in JMP 16?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-automatically-detect-primary-key-and-secondary-key-of/m-p/668112#M85629</link>
      <description>&lt;P&gt;Thanks Bryan, already did in&amp;nbsp;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/Automatically-detect-primary-key-and-foreign-key-of-SQLite-when/idi-p/668099" target="_blank"&gt;Automatically detect primary key and foreign key of SQLite when opening the data... - JMP User Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 08:38:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-automatically-detect-primary-key-and-secondary-key-of/m-p/668112#M85629</guid>
      <dc:creator>Wenhan</dc:creator>
      <dc:date>2023-08-15T08:38:50Z</dc:date>
    </item>
  </channel>
</rss>

