<?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 Update Data Source for SQL geodatabase from database authentication to operating system authentication in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/update-data-source-for-sql-geodatabase-from/m-p/1381331#M78671</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 3.2.1.&lt;/P&gt;&lt;P&gt;I see this doc:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/projects/update-data-sources.htm#" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/projects/update-data-sources.htm#&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't think that helps me. I'm trying to change all of my sources in my aprx from SQL database authentication to SQL windows authentication. I don't want to have to click on each layer individually and go to Set Data Source and navigate to my databases connection that is Windows Auth- but I think that might be the only way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a faster way?&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 21:49:40 GMT</pubDate>
    <dc:creator>AndreaB_</dc:creator>
    <dc:date>2024-02-12T21:49:40Z</dc:date>
    <item>
      <title>Update Data Source for SQL geodatabase from database authentication to operating system authentication</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-data-source-for-sql-geodatabase-from/m-p/1381331#M78671</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 3.2.1.&lt;/P&gt;&lt;P&gt;I see this doc:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/projects/update-data-sources.htm#" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/projects/update-data-sources.htm#&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't think that helps me. I'm trying to change all of my sources in my aprx from SQL database authentication to SQL windows authentication. I don't want to have to click on each layer individually and go to Set Data Source and navigate to my databases connection that is Windows Auth- but I think that might be the only way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a faster way?&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 21:49:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-data-source-for-sql-geodatabase-from/m-p/1381331#M78671</guid>
      <dc:creator>AndreaB_</dc:creator>
      <dc:date>2024-02-12T21:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Update Data Source for SQL geodatabase from database authentication to operating system authentication</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-data-source-for-sql-geodatabase-from/m-p/1381454#M78685</link>
      <description>&lt;P&gt;This might be what you are looking for. Basically, you'll need change switch out your data source from your old SDE connection file with SQL DB authentication to a new SDE connection file with SQL Windows authentication.&lt;/P&gt;&lt;P&gt;You should be able to do it with a little bit of Python. Although, disclaimer, I have attempted to do this and it ended up not working quite right and I just had to do it manually. I'm not sure if I was just doing something wrong or what. But regardless, I think this page will help you bulk change the data sources.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Depending on how many layers you need to change data sources on, it might be faster to just manually change them as opposed to trying to write some Python code to do it. Just depends on how fast you are and how well it works for you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 06:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-data-source-for-sql-geodatabase-from/m-p/1381454#M78685</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2024-02-13T06:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update Data Source for SQL geodatabase from database authentication to operating system authentication</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-data-source-for-sql-geodatabase-from/m-p/1381707#M78703</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/154737"&gt;@RyanUthoff&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Oh, that was it!! Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the sample code from that link and ran it in a new notebook in a different aprx:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; arcpy aprx = arcpy.mp.ArcGISProject(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r'C:\Projects\YosemiteNP\Yosemite.aprx'&lt;/SPAN&gt;&lt;SPAN&gt;) aprx.updateConnectionProperties(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r'C:\Projects\YosemiteNP\DBConnections\TestGDB.sde'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;r'C:\Projects\YosemiteNP\DBConnections\ProductionGDB.sde'&lt;/SPAN&gt;&lt;SPAN&gt;) aprx.saveACopy(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r"C:\Projects\YosemiteNP\YosemiteNew.aprx"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And it worked!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One thing to note is both .sde connection files had to be in the project folder. I first tried referencing an .sde connection file that was in my Favorites folder and that didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-data-source-for-sql-geodatabase-from/m-p/1381707#M78703</guid>
      <dc:creator>AndreaB_</dc:creator>
      <dc:date>2024-02-13T17:33:39Z</dc:date>
    </item>
  </channel>
</rss>

