<?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 ERROR: Unable to load server library - SQL SRV 2014 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-unable-to-load-server-library-sql-srv-2014/m-p/743567#M57475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm running a new client system image through it's paces and I can't get PYTHON CMD LINE to connect to database.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;System image - Windows 7 Ent SP1&lt;/LI&gt;&lt;LI&gt;SQL Server 2014 Database&lt;/LI&gt;&lt;LI&gt;SQL Server 2012 Native Client (SDK) installed (11.1.3000)&lt;/LI&gt;&lt;LI&gt;ArcGIS 10.3.1, all extensions - Clean install - no patches to date&lt;/LI&gt;&lt;LI&gt;Added ArcGIS 10.3.1 - Desktop Background Geoprocessing (64 Bit) - adds 64 Bit Python&lt;/LI&gt;&lt;LI&gt;Python27 - default install&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;System connects to DB fine with ArcCat and ODBC with the SLQ Server 2012 Native Client. When trying to run enable_enterprise_gdp.py script, the tool runs fine in ArcCat, but when trying to run outside of ArcMap via cmd line it fails:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Unable to load server library (c:\program files (x86)\arcgis\desktop10.3\bin\sdemssqlsrvr103.dll)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Error = -324&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried running it with both 32/64 Python installations, same error. I know the database client drivers for Oracle were an issue 32 / 64 bit, fixable with PATH. But, I thought this was not an issue with the latest version of SQL Server 2012 native client (i.e. both 32/64 bit libraries are installed automatically). Other users may need the capability to run Python and connect to db out side of ArcMap (R or other 3rd party script environments).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help asap would be appreciated, the image gets deployed on multiple workstations Monday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 18:31:41 GMT</pubDate>
    <dc:creator>SusanMcClendon1</dc:creator>
    <dc:date>2016-03-31T18:31:41Z</dc:date>
    <item>
      <title>ERROR: Unable to load server library - SQL SRV 2014</title>
      <link>https://community.esri.com/t5/python-questions/error-unable-to-load-server-library-sql-srv-2014/m-p/743567#M57475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm running a new client system image through it's paces and I can't get PYTHON CMD LINE to connect to database.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;System image - Windows 7 Ent SP1&lt;/LI&gt;&lt;LI&gt;SQL Server 2014 Database&lt;/LI&gt;&lt;LI&gt;SQL Server 2012 Native Client (SDK) installed (11.1.3000)&lt;/LI&gt;&lt;LI&gt;ArcGIS 10.3.1, all extensions - Clean install - no patches to date&lt;/LI&gt;&lt;LI&gt;Added ArcGIS 10.3.1 - Desktop Background Geoprocessing (64 Bit) - adds 64 Bit Python&lt;/LI&gt;&lt;LI&gt;Python27 - default install&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;System connects to DB fine with ArcCat and ODBC with the SLQ Server 2012 Native Client. When trying to run enable_enterprise_gdp.py script, the tool runs fine in ArcCat, but when trying to run outside of ArcMap via cmd line it fails:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Unable to load server library (c:\program files (x86)\arcgis\desktop10.3\bin\sdemssqlsrvr103.dll)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Error = -324&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried running it with both 32/64 Python installations, same error. I know the database client drivers for Oracle were an issue 32 / 64 bit, fixable with PATH. But, I thought this was not an issue with the latest version of SQL Server 2012 native client (i.e. both 32/64 bit libraries are installed automatically). Other users may need the capability to run Python and connect to db out side of ArcMap (R or other 3rd party script environments).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help asap would be appreciated, the image gets deployed on multiple workstations Monday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 18:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-unable-to-load-server-library-sql-srv-2014/m-p/743567#M57475</guid>
      <dc:creator>SusanMcClendon1</dc:creator>
      <dc:date>2016-03-31T18:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unable to load server library - SQL SRV 2014</title>
      <link>https://community.esri.com/t5/python-questions/error-unable-to-load-server-library-sql-srv-2014/m-p/743568#M57476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Culprit is the &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Desktop Background Geoprocessing (64 Bit) adding 64 bit Python (don't get me wrong, that is great!).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default PythonPath - HKLM\Software\Python\PythonCore\2.7 - c:\Python27\ArcGISx6410.3 installed with the BGP patch. ESRI Default Desktop PythonPath - HKLM\Sofware\ESRI\Python10.3 - c:\Python27\ArcGIS10.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native desktop tools like enable_gdb.py require 32 bit Python...no issues with the sql driver, despite what the error message indicates. But, if you try to run a tool in a script independent of ArcGIS Desktop (say a scheduled task to compress geo database), you need to explicitly call c:\Python\ArcGIS10.3\python.exe (32 bit), otherwise it will default to c:\Python\ArcGISx6410.3\python.exe (64 bit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what I did wrong in initial test when it failed with&amp;nbsp; 32 bit Python, but it works now. doh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 20:22:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-unable-to-load-server-library-sql-srv-2014/m-p/743568#M57476</guid>
      <dc:creator>SusanMcClendon1</dc:creator>
      <dc:date>2016-04-05T20:22:41Z</dc:date>
    </item>
  </channel>
</rss>

