<?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 altering a geodatabase connection using python in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-a-geodatabase-connection-using-python/m-p/121880#M4747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in the process of deploying an Esri Enterprise geodatabase from scratch on SQL Server 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This involves the use of SQLCMD and Powershell to create the database, schemas, users and security.&amp;nbsp; I have then scripted up a python script to create the database connections for the SDE Admin user (to enable geodatabase) to the 8 databases.&amp;nbsp; NOTE:&amp;nbsp; There is no geodatabase enabled in each database yet so any of the Geodatabase properties are ignored (as the documentation states).&amp;nbsp; A second script then enables geodatabase (using the keycodes file) for each of the 8 databases using the SDE Admin database connection created in the previous script.&amp;nbsp; Both scripts work fine.&amp;nbsp; However, when I open ArcCatalog and double click on any geodatabase there is an error stating the the default version is not found.&amp;nbsp; I right mouse click on the connection and select the Geodatabase properties and select 'Geodatabase Connection Properties', The Transactional Version with the owner sde and press OK.&amp;nbsp; The connection is then successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1):&lt;/STRONG&gt;&amp;nbsp; Even though I set all of the parameters when I create the initial connection, why are they (version_type and version) not accepted once geodatabase has been enabled?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Comment 1): &lt;/STRONG&gt;If I create a connection with exactly the same details (just a different connection name) it connects as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2):&lt;/STRONG&gt;&amp;nbsp; Is there a method I can use to check for an existing Enterprise database connection without looking for an SDE file in the C:\Users\XXX\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 3):&lt;/STRONG&gt;&amp;nbsp; Is there a method to update a database connection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The objective of this is to try and remove the amount of manual steps (ArcCatalog use) in an Enterprise database deployment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 22:34:42 GMT</pubDate>
    <dc:creator>ShaneTurk1</dc:creator>
    <dc:date>2015-07-13T22:34:42Z</dc:date>
    <item>
      <title>altering a geodatabase connection using python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-a-geodatabase-connection-using-python/m-p/121880#M4747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in the process of deploying an Esri Enterprise geodatabase from scratch on SQL Server 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This involves the use of SQLCMD and Powershell to create the database, schemas, users and security.&amp;nbsp; I have then scripted up a python script to create the database connections for the SDE Admin user (to enable geodatabase) to the 8 databases.&amp;nbsp; NOTE:&amp;nbsp; There is no geodatabase enabled in each database yet so any of the Geodatabase properties are ignored (as the documentation states).&amp;nbsp; A second script then enables geodatabase (using the keycodes file) for each of the 8 databases using the SDE Admin database connection created in the previous script.&amp;nbsp; Both scripts work fine.&amp;nbsp; However, when I open ArcCatalog and double click on any geodatabase there is an error stating the the default version is not found.&amp;nbsp; I right mouse click on the connection and select the Geodatabase properties and select 'Geodatabase Connection Properties', The Transactional Version with the owner sde and press OK.&amp;nbsp; The connection is then successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1):&lt;/STRONG&gt;&amp;nbsp; Even though I set all of the parameters when I create the initial connection, why are they (version_type and version) not accepted once geodatabase has been enabled?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Comment 1): &lt;/STRONG&gt;If I create a connection with exactly the same details (just a different connection name) it connects as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2):&lt;/STRONG&gt;&amp;nbsp; Is there a method I can use to check for an existing Enterprise database connection without looking for an SDE file in the C:\Users\XXX\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 3):&lt;/STRONG&gt;&amp;nbsp; Is there a method to update a database connection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The objective of this is to try and remove the amount of manual steps (ArcCatalog use) in an Enterprise database deployment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 22:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/altering-a-geodatabase-connection-using-python/m-p/121880#M4747</guid>
      <dc:creator>ShaneTurk1</dc:creator>
      <dc:date>2015-07-13T22:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: altering a geodatabase connection using python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/altering-a-geodatabase-connection-using-python/m-p/121881#M4748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;I've moved your question to GeoNet's space for &lt;SPAN style="background: #CCCCFF;"&gt;GIS &amp;gt; Enterprise GIS &amp;gt; ArcGIS for Server&lt;/SPAN&gt; discussions. I think your question on scripting geodatabase administration is better positioned here than in the GeoEvent area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;Best Regards -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;RJ&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 23:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/altering-a-geodatabase-connection-using-python/m-p/121881#M4748</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2015-08-05T23:35:55Z</dc:date>
    </item>
  </channel>
</rss>

