<?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 Script GIS Database Connection in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/script-gis-database-connection/m-p/247348#M14054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there an ability to script creating a connection to a database, dynamically each time the script runs?&amp;nbsp; I am finding at 10 that my .odc files are getting corrupted (only on Server 2008 R2), so I need to recreate them often, so it would be nice to have a similar capability where I can just script the connection each and every time, then allow it to live only within the time that the script is running, then kill it once the script ends.&amp;nbsp; Ideally, scriptable via python.&amp;nbsp; Can we do this today?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Feb 2011 18:20:56 GMT</pubDate>
    <dc:creator>TedCronin</dc:creator>
    <dc:date>2011-02-07T18:20:56Z</dc:date>
    <item>
      <title>Script GIS Database Connection</title>
      <link>https://community.esri.com/t5/data-management-questions/script-gis-database-connection/m-p/247348#M14054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there an ability to script creating a connection to a database, dynamically each time the script runs?&amp;nbsp; I am finding at 10 that my .odc files are getting corrupted (only on Server 2008 R2), so I need to recreate them often, so it would be nice to have a similar capability where I can just script the connection each and every time, then allow it to live only within the time that the script is running, then kill it once the script ends.&amp;nbsp; Ideally, scriptable via python.&amp;nbsp; Can we do this today?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 18:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/script-gis-database-connection/m-p/247348#M14054</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2011-02-07T18:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script GIS Database Connection</title>
      <link>https://community.esri.com/t5/data-management-questions/script-gis-database-connection/m-p/247349#M14055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ted, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no option for creating OLE DB connections through Python. We do have a create ArcSDE connection file tool at 10. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, here is a link to an ArcObjects sample that will create an ArcSDE connection file at 9.3/10. With a little bit of tweaking you should be able to get this to work with odc files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2008/09/24/Tips-and-Tricks-_2D00_-Creating-ArcSDE-connection-files-on-the-fly-using-Python-and-ArcObjects.aspx"&gt;http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2008/09/24/Tips-and-Tricks-_2D00_-Creating-ArcSDE-connection-files-on-the-fly-using-Python-and-ArcObjects.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately ArcObjects/Java is not my forte so if you do go this route you may want to post in one of the programming forums for assistance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/script-gis-database-connection/m-p/247349#M14055</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2011-02-08T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script GIS Database Connection</title>
      <link>https://community.esri.com/t5/data-management-questions/script-gis-database-connection/m-p/247350#M14056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps creating .odc files could be an enhancement to finish up this stack, since we can already create .sde connections.&amp;nbsp; Thanks Russell.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I too, see no need to pursue anything outside of python.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 16:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/script-gis-database-connection/m-p/247350#M14056</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2011-02-08T16:53:45Z</dc:date>
    </item>
  </channel>
</rss>

