<?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>idea Create a way to update sde connection paramaters in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idi-p/1408119</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;####Update SDE Files using TLS Security for SQL Server
import os
import operator
import arcpy

dbloc = r"D:\MapsandGeodatabases\dbconnects/"
dblist = os.listdir(dbloc)
dblocnew=r"D:\MapsandGeodatabases\newdbconnects/"
user='xxx'
passw='xxx'

for dbl in dblist:
    if '.sde' in dbl:
        try:
            desc = arcpy.Describe(dbloc + dbl)
            cp = desc.connectionProperties
            cpdb = cp.database
            inst = cp.instance[+14:]
            enco = ";Encrypt=yes;TrustServerCertificate=yes"
            arcpy.management.CreateDatabaseConnection(
                out_folder_path=dblocnew,
                out_name=dbl,
                database_platform="SQL_SERVER",
                instance=inst+enco,
                account_authentication="DATABASE_AUTH",
                username=user,
                password=passw,
                save_user_pass="SAVE_USERNAME",
                database=cpdb,
                schema="",
                version_type="BRANCH",
                version="",
                date=None,
                auth_type="",
                project_id="",
                default_dataset="",
                refresh_token='',
                key_file=None,
                role="",
                warehouse="",
                advanced_options=""
            )
            print(arcpy.GetMessages())
        except Exception as e:
            print(f"issue with sde connection file {dbl}: {str(e)}")
            continue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 14:52:57 GMT</pubDate>
    <dc:creator>SavageTrimble</dc:creator>
    <dc:date>2024-04-19T14:52:57Z</dc:date>
    <item>
      <title>Create a way to update sde connection paramaters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idi-p/1408119</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;####Update SDE Files using TLS Security for SQL Server
import os
import operator
import arcpy

dbloc = r"D:\MapsandGeodatabases\dbconnects/"
dblist = os.listdir(dbloc)
dblocnew=r"D:\MapsandGeodatabases\newdbconnects/"
user='xxx'
passw='xxx'

for dbl in dblist:
    if '.sde' in dbl:
        try:
            desc = arcpy.Describe(dbloc + dbl)
            cp = desc.connectionProperties
            cpdb = cp.database
            inst = cp.instance[+14:]
            enco = ";Encrypt=yes;TrustServerCertificate=yes"
            arcpy.management.CreateDatabaseConnection(
                out_folder_path=dblocnew,
                out_name=dbl,
                database_platform="SQL_SERVER",
                instance=inst+enco,
                account_authentication="DATABASE_AUTH",
                username=user,
                password=passw,
                save_user_pass="SAVE_USERNAME",
                database=cpdb,
                schema="",
                version_type="BRANCH",
                version="",
                date=None,
                auth_type="",
                project_id="",
                default_dataset="",
                refresh_token='',
                key_file=None,
                role="",
                warehouse="",
                advanced_options=""
            )
            print(arcpy.GetMessages())
        except Exception as e:
            print(f"issue with sde connection file {dbl}: {str(e)}")
            continue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idi-p/1408119</guid>
      <dc:creator>SavageTrimble</dc:creator>
      <dc:date>2024-04-19T14:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a way to update sde connection paramaters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1408731#M29463</link>
      <description>&lt;P&gt;You might want to use the Code Block functionality in these boards when you post code:&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-documents/posting-code-with-syntax-highlighting-on-geonet/ta-p/916243" target="_blank"&gt;https://community.esri.com/t5/python-documents/posting-code-with-syntax-highlighting-on-geonet/ta-p/916243&lt;/A&gt;&lt;/P&gt;&lt;P&gt;All of your indentation was lost when you pasted it in, which makes your code illegible and nonfunctional. Including it in the TXT file helps somewhat, but not everyone's going to want to go to a separate file, assuming they even see it. Plus, neither your pasted code nor the TXT file has syntax highlighting, which slows reading for some of us.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 20:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1408731#M29463</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-04-11T20:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a way to update sde connection paramaters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1409104#M29464</link>
      <description>&lt;P&gt;Fixed code highlighting.&amp;nbsp; If anyone has questions, please let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1409104#M29464</guid>
      <dc:creator>SavageTrimble</dc:creator>
      <dc:date>2024-04-12T17:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a way to update sde connection paramaters - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1410403#M29465</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/62939"&gt;@SavageTrimble&lt;/a&gt;&amp;nbsp;Thank you for submitting your idea, do you mind&amp;nbsp;providing some more context/background?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 16:37:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1410403#M29465</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-04-16T16:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a way to update sde connection paramaters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1410467#M29466</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&amp;nbsp;There is no way to programmatically or through a batch process update existing sde connection files for the additional properties.&amp;nbsp; In fact, there is no geoprocessing tool to do this.&amp;nbsp; Each connection needs to be manually updated.&amp;nbsp; For medium to large organizations that have many sde connections, this is a problem.&amp;nbsp; The industry is now leaning towards encrypting database instances via tls connections.&amp;nbsp; Once this is done for the GIS person who manages the enterprise geodatabase stack, it is very costly and time consuming.&amp;nbsp; Below is a screenshot of what is added in order to work.&amp;nbsp; Does this help answer your question?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LukeSavage_0-1713289796152.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101083iFFE51C84BA1792C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LukeSavage_0-1713289796152.png" alt="LukeSavage_0-1713289796152.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 17:50:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1410467#M29466</guid>
      <dc:creator>SavageTrimble</dc:creator>
      <dc:date>2024-04-16T17:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create a way to update sde connection paramaters - Status changed to: Open</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1410592#M29467</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/62939"&gt;@SavageTrimble&lt;/a&gt;&amp;nbsp;Yes that is very helpful, thank you for the additional details!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 20:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1410592#M29467</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-04-16T20:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a way to update sde connection paramaters</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1492790#M30679</link>
      <description>&lt;P&gt;An additional/related enhancement would be to have a way to open a connection file without having it attempt to connect to the database.&amp;nbsp; When the connection is "broken" having to wait for the timeout before being able to access the properties is crazy slow.&amp;nbsp; Something like a "open but don't hydrate" method when all we want to do is access the properties of the connection file rather than actually connecting to the database.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 15:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/create-a-way-to-update-sde-connection-paramaters/idc-p/1492790#M30679</guid>
      <dc:creator>AJR</dc:creator>
      <dc:date>2024-06-14T15:44:29Z</dc:date>
    </item>
  </channel>
</rss>

