<?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 PyODBC Driver to Connect to Access DB in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/pyodbc-driver-to-connect-to-access-db/m-p/1192953#M57346</link>
    <description>&lt;P&gt;I'm on Windows with ArcGIS Pro 3.0.0 using the Python environment installed with ArcGIS Pro (arcgispro-py3 from Pro's install directory in Program Files) and I'm trying to make a database connection to an access database like so:&lt;/P&gt;&lt;PRE&gt;import pyodb&lt;BR /&gt;conn_string = &lt;SPAN&gt;r'DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};' &lt;/SPAN&gt;\&lt;BR /&gt;              &lt;SPAN&gt;r'DBQ=C:path\to\mydatabase.mdb;'&lt;BR /&gt;&lt;/SPAN&gt;connection = pyodbc.connect(conn_string)&lt;/PRE&gt;&lt;P&gt;I'm getting this error:&lt;/P&gt;&lt;PRE&gt;pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')&lt;/PRE&gt;&lt;P&gt;When I look at my drivers I see this:&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt;print(pyodbc.drivers())&lt;BR /&gt;['SQL Server', 'SQL Server Native Client 11.0', 'ODBC Driver 17 for SQL Server']&lt;/PRE&gt;&lt;P&gt;How can I make this connection work?&lt;/P&gt;&lt;P&gt;I've tried using a virtual environment (and explicitly uninstalling/reinstalling pyodbc from there) uninstalling/reinstalling ArcGIS Pro, and downgrading ArcGIS Pro to 2.9.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 15:19:14 GMT</pubDate>
    <dc:creator>BenRomlein</dc:creator>
    <dc:date>2022-07-18T15:19:14Z</dc:date>
    <item>
      <title>PyODBC Driver to Connect to Access DB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pyodbc-driver-to-connect-to-access-db/m-p/1192953#M57346</link>
      <description>&lt;P&gt;I'm on Windows with ArcGIS Pro 3.0.0 using the Python environment installed with ArcGIS Pro (arcgispro-py3 from Pro's install directory in Program Files) and I'm trying to make a database connection to an access database like so:&lt;/P&gt;&lt;PRE&gt;import pyodb&lt;BR /&gt;conn_string = &lt;SPAN&gt;r'DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};' &lt;/SPAN&gt;\&lt;BR /&gt;              &lt;SPAN&gt;r'DBQ=C:path\to\mydatabase.mdb;'&lt;BR /&gt;&lt;/SPAN&gt;connection = pyodbc.connect(conn_string)&lt;/PRE&gt;&lt;P&gt;I'm getting this error:&lt;/P&gt;&lt;PRE&gt;pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')&lt;/PRE&gt;&lt;P&gt;When I look at my drivers I see this:&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt;print(pyodbc.drivers())&lt;BR /&gt;['SQL Server', 'SQL Server Native Client 11.0', 'ODBC Driver 17 for SQL Server']&lt;/PRE&gt;&lt;P&gt;How can I make this connection work?&lt;/P&gt;&lt;P&gt;I've tried using a virtual environment (and explicitly uninstalling/reinstalling pyodbc from there) uninstalling/reinstalling ArcGIS Pro, and downgrading ArcGIS Pro to 2.9.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 15:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pyodbc-driver-to-connect-to-access-db/m-p/1192953#M57346</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2022-07-18T15:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: PyODBC Driver to Connect to Access DB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pyodbc-driver-to-connect-to-access-db/m-p/1192969#M57347</link>
      <description>&lt;P&gt;in my case, I was able to download and install the missing driver on my machine:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=54920" target="_blank"&gt;https://www.microsoft.com/en-us/download/details.aspx?id=54920&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 15:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pyodbc-driver-to-connect-to-access-db/m-p/1192969#M57347</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2022-07-18T15:46:24Z</dc:date>
    </item>
  </channel>
</rss>

