<?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: Is there a way to read a SQLite database using SAS? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173273#M2221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, simply download the SQLITE ODBC driver as indicated by &lt;A __default_attr="8872" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THere are 3 types though, besides bitness, so you'll need to know if the database was created as SQLITE 3 or another source. Or try each one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; until one works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably need admin privileges on your computer to accomplish this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2014 15:35:29 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-10-06T15:35:29Z</dc:date>
    <item>
      <title>Is there a way to read a SQLite database using SAS?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173271#M2219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to read a SQLite database using SAS?&amp;nbsp; Is there an ACCESS Interface available?&amp;nbsp; There is an R application that writes to a SQLite database and I'm trying to figure out a way to read the data generated in the app.&amp;nbsp; Any ideas?&amp;nbsp; I'm running SAS 9.3.2 in Windows 7.&amp;nbsp; We have SAS Access for ODBC.&amp;nbsp; With the right driver, can it be used to read SQLite?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173271#M2219</guid>
      <dc:creator>LoriGoldman</dc:creator>
      <dc:date>2014-10-06T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to read a SQLite database using SAS?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173272#M2220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as you can&amp;nbsp; access SQLite and having sas/access that should be able to be used.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ch-werner.de/sqliteodbc/" title="http://www.ch-werner.de/sqliteodbc/"&gt;SQLite ODBC Driver&lt;/A&gt; (&lt;A href="http://www.ch-werner.de/sqliteodbc/"&gt;www.ch-werner.de/sqliteodbc)&lt;/A&gt; take care of the bitness. With a 32-bit SAS you are needing a 32-bit driver with a 64-bit SAS the 64-bit driver.&lt;/P&gt;&lt;P&gt;If you have IML you could connect that one to R.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173272#M2220</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-06T15:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to read a SQLite database using SAS?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173273#M2221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, simply download the SQLITE ODBC driver as indicated by &lt;A __default_attr="8872" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THere are 3 types though, besides bitness, so you'll need to know if the database was created as SQLITE 3 or another source. Or try each one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; until one works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably need admin privileges on your computer to accomplish this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173273#M2221</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-06T15:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to read a SQLite database using SAS?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173274#M2222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Funny you should ask.&amp;nbsp; I am working on a SQL Pass-through engine for SQLite v3 right now. I am recruiting anyone interested in beta-testing the engine.&amp;nbsp; If you are interested, reply.&amp;nbsp; The engine does not require SAS/ACCESS for ODBC, etc.&amp;nbsp; This is an internal SAS pass-through engine (see below for the LIBNAME engine, information).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current status on SQLite Pass-Through engine (SQLitePT):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The engine connects/disconnects with the SQLITE3.DLL.&lt;/LI&gt;&lt;LI&gt;The engine opens/closes the file you tell it to with ACCESS=READONLY | READWRITE | CREATE.&lt;/LI&gt;&lt;LI&gt;The engine executes SELECT queries but currently returns everything as a 128 byte character string (see below).&lt;/LI&gt;&lt;LI&gt;The engine can perform an EXECUTE (sqlite-sql-code) BY command. &lt;/LI&gt;&lt;LI&gt;The EXECUTE () BY also includes an option to return results to the LOG or not.&amp;nbsp; This is needed because of SQLite's love of PRAGMA commands to retrieve information and the SQL-Pass-Through requirement that information may only be retrieved from the DB via a SELECT query.&amp;nbsp; EXECUTE has no facility to return information to SAS (except via LOG or OUTPUT).&amp;nbsp; I will get around this later by exploiting commented hints in the query.&lt;/LI&gt;&lt;LI&gt;Currently working on data type evaluation which is tricky in SQLite since the engine does not really type columns, at all.&amp;nbsp; This will follow three methods: Hints, Declared types, and Guess (sample with type promotion, sample with type TEXT, sample with type MAJORITY).&lt;/LI&gt;&lt;LI&gt;The options parser needs work -- I thought I would not need so many options but they keep spiraling and my simple state-machine is becoming cumbersome.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Pass-through engine was my first effort because it is relatively simple [except for data typing, the SQLitePT engine is almost a direct mapping between the SAS Pass-through API requests and SQLite API fulfiller].&amp;nbsp; This is my introduction to the SQLite API. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be followed by a SQLite LIBNAME engine later this year or early next year.&amp;nbsp; This is partially written but nowhere near beta-testing.&amp;nbsp; Most likely January before a beta version would be available since I have a day-job and this ain't it :smileygrin: -- this is just promotion-ware).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm toying with a Cassandra interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 22:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/173274#M2222</guid>
      <dc:creator>StatNoodle</dc:creator>
      <dc:date>2014-11-14T22:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to read a SQLite database using SAS?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/228707#M3457</link>
      <description>&lt;P&gt;Dear Ms/Mr Noodle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are interested in your "SQL Pass-through engine for SQLite v3".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running Red Hat Linux on our server (2.6.32-431.20.3.el6.x86_64).&amp;nbsp; Would that be compatible with your DLL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 19:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-there-a-way-to-read-a-SQLite-database-using-SAS/m-p/228707#M3457</guid>
      <dc:creator>whiteray</dc:creator>
      <dc:date>2015-10-06T19:02:48Z</dc:date>
    </item>
  </channel>
</rss>

