<?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: Access multiple .mdb files using Python in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17084#M930</link>
    <description>&lt;P&gt;@Dhara Mandal​&amp;nbsp;Can you please try below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;# cmd 1
%pip instal pandas_access
&amp;nbsp;
# cmd 2
import pandas_access as mdb
&amp;nbsp;
db_filename = '/dbfs/FileStore/Campaign_Template.mdb'
&amp;nbsp;
# Listing the tables.
for tbl in mdb.list_tables(db_filename):
    print(tbl)
&amp;nbsp;
# Read a small table.
df = mdb.read_table(db_filename, "Campaign_Table")
df.head()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1764i0F02632C4F650987/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This article has some examples&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/25596737/working-with-an-access-database-in-python-on-non-windows-platform-linux-or-mac" alt="https://stackoverflow.com/questions/25596737/working-with-an-access-database-in-python-on-non-windows-platform-linux-or-mac" target="_blank"&gt;https://stackoverflow.com/questions/25596737/working-with-an-access-database-in-python-on-non-windows-platform-linux-or-mac&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 14:40:26 GMT</pubDate>
    <dc:creator>User16764241763</dc:creator>
    <dc:date>2022-07-18T14:40:26Z</dc:date>
    <item>
      <title>Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17074#M920</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to access multiple .mdb access files which are stored in the Azure Data Lake Storage(ADLS) or on Databricks File System using Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to guide me how can I achieve it? It would be great if you can share some code snippets for the same.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 14:50:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17074#M920</guid>
      <dc:creator>Dhara</dc:creator>
      <dc:date>2022-06-21T14:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17075#M921</link>
      <description>&lt;P&gt;Hello @Dhara Mandal​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate on the requirements for using multiple .mdb files?​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 05:23:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17075#M921</guid>
      <dc:creator>User16764241763</dc:creator>
      <dc:date>2022-06-27T05:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17076#M922</link>
      <description>&lt;P&gt;Few of our customers are sending us some data in the .mdb files very frequently and we wanted to access data for few tables from those files. Then want to perform some data manipulations on top of it ultimately saving it into the excel files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to access the .mdb files and load the data into the data frame and then do multiple things on top of it. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 05:35:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17076#M922</guid>
      <dc:creator>Dhara</dc:creator>
      <dc:date>2022-06-27T05:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17077#M923</link>
      <description>&lt;P&gt;&lt;B&gt;“how to open mdb file in python” Code Answer&lt;/B&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;import pyodbc.&lt;/LI&gt;&lt;LI&gt;​&lt;/LI&gt;&lt;LI&gt;conn = pyodbc. connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=path where you stored the Access file\file name.accdb;')&lt;/LI&gt;&lt;LI&gt;cursor = conn. cursor()&lt;/LI&gt;&lt;LI&gt;cursor. execute('select * from table name')&lt;/LI&gt;&lt;LI&gt;for row in cursor. fetchall():&lt;/LI&gt;&lt;LI&gt;print (row)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;A href="https://www.myinsite.biz/" alt="https://www.myinsite.biz/" target="_blank"&gt;My Insite&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 05:48:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17077#M923</guid>
      <dc:creator>Brooksjit</dc:creator>
      <dc:date>2022-06-27T05:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17078#M924</link>
      <description>&lt;P&gt;I have tried this code earlier but its not working. I am getting the following error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rror: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'Microsoft Access Driver (*.mdb, *.accdb)' : file not found (0) (SQLDriverConnect)")&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Error                                     Traceback (most recent call last)&lt;/P&gt;&lt;P&gt;&amp;lt;command-753409017935809&amp;gt; in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;      1 import pyodbc&lt;/P&gt;&lt;P&gt;----&amp;gt; 2 conn = pyodbc. connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=/dbfs/mnt/serviceslob/msaccess_file/FLReports_UK_M_5-16-22.mdb;')&lt;/P&gt;&lt;P&gt;      3 cursor = conn. cursor()&lt;/P&gt;&lt;P&gt;      4 cursor. execute('select * from table name')&lt;/P&gt;&lt;P&gt;      5 for row in cursor. fetchall():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'Microsoft Access Driver (*.mdb, *.accdb)' : file not found (0) (SQLDriverConnect)")&lt;/P&gt;&lt;P&gt;Command took&amp;nbsp;0.23 seconds&amp;nbsp;-- by dm185336@ncr.com at 6/27/2022, 1:52:38 AM on Purviewdemo&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 05:54:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17078#M924</guid>
      <dc:creator>Dhara</dc:creator>
      <dc:date>2022-06-27T05:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17080#M926</link>
      <description>&lt;P&gt;It can be as well missing driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can install that library &lt;A href="https://pypi.org/project/JayDeBeApi/" alt="https://pypi.org/project/JayDeBeApi/" target="_blank"&gt;jaydebeapi&lt;/A&gt; and point to jar with the JDBC driver (http://ucanaccess.sourceforge.net/site.html).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look to that discussion as well: &lt;A href="https://community.databricks.com/s/question/0D53f00001bdlQoCAI/what-is-the-best-way-to-read-in-a-ms-access-accdb-database-into-databricks-from-a-mounted-drive" alt="https://community.databricks.com/s/question/0D53f00001bdlQoCAI/what-is-the-best-way-to-read-in-a-ms-access-accdb-database-into-databricks-from-a-mounted-drive" target="_blank"&gt;https://community.databricks.com/s/question/0D53f00001bdlQoCAI/what-is-the-best-way-to-read-in-a-ms-access-accdb-database-into-databricks-from-a-mounted-drive&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:23:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17080#M926</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-06-27T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17081#M927</link>
      <description>&lt;P&gt;Hi I have installed the library as well as uploaded the jar files too. Still I am facing the same error. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 03:15:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17081#M927</guid>
      <dc:creator>Dhara</dc:creator>
      <dc:date>2022-06-29T03:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17082#M928</link>
      <description />
      <pubDate>Wed, 29 Jun 2022 03:16:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17082#M928</guid>
      <dc:creator>Dhara</dc:creator>
      <dc:date>2022-06-29T03:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17083#M929</link>
      <description>&lt;P&gt;I have uploaded the file on the ADLS and have tried giving that path too but still I am getting the error. Please find the attached screenshot which has the file in that path and I have used the same path in the code too. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 03:21:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17083#M929</guid>
      <dc:creator>Dhara</dc:creator>
      <dc:date>2022-06-29T03:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Access multiple .mdb files using Python</title>
      <link>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17084#M930</link>
      <description>&lt;P&gt;@Dhara Mandal​&amp;nbsp;Can you please try below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;# cmd 1
%pip instal pandas_access
&amp;nbsp;
# cmd 2
import pandas_access as mdb
&amp;nbsp;
db_filename = '/dbfs/FileStore/Campaign_Template.mdb'
&amp;nbsp;
# Listing the tables.
for tbl in mdb.list_tables(db_filename):
    print(tbl)
&amp;nbsp;
# Read a small table.
df = mdb.read_table(db_filename, "Campaign_Table")
df.head()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1764i0F02632C4F650987/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This article has some examples&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/25596737/working-with-an-access-database-in-python-on-non-windows-platform-linux-or-mac" alt="https://stackoverflow.com/questions/25596737/working-with-an-access-database-in-python-on-non-windows-platform-linux-or-mac" target="_blank"&gt;https://stackoverflow.com/questions/25596737/working-with-an-access-database-in-python-on-non-windows-platform-linux-or-mac&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:40:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/access-multiple-mdb-files-using-python/m-p/17084#M930</guid>
      <dc:creator>User16764241763</dc:creator>
      <dc:date>2022-07-18T14:40:26Z</dc:date>
    </item>
  </channel>
</rss>

