<?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 Arcpy tool for modifying the source of a query layer? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-tool-for-modifying-the-source-of-a-query/m-p/1122677#M48649</link>
    <description>&lt;P&gt;I have a Pro project with 16 maps that each contain 6 layers. All of the layers are query layers pulling data from the same SQL database. Next month, the database is going to be moved to a production server, which means that I need to change the connection that all 96 layers use. Needless to say, I am not looking forward to that many clicks! Is there something in the arcpy library that I could use to script out the process of repointing these layers? I've never used a script to modify a Pro project before, so I'm mainly looking for ideas on where to start.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2021 22:20:51 GMT</pubDate>
    <dc:creator>AmyRoust</dc:creator>
    <dc:date>2021-12-03T22:20:51Z</dc:date>
    <item>
      <title>Arcpy tool for modifying the source of a query layer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-tool-for-modifying-the-source-of-a-query/m-p/1122677#M48649</link>
      <description>&lt;P&gt;I have a Pro project with 16 maps that each contain 6 layers. All of the layers are query layers pulling data from the same SQL database. Next month, the database is going to be moved to a production server, which means that I need to change the connection that all 96 layers use. Needless to say, I am not looking forward to that many clicks! Is there something in the arcpy library that I could use to script out the process of repointing these layers? I've never used a script to modify a Pro project before, so I'm mainly looking for ideas on where to start.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-tool-for-modifying-the-source-of-a-query/m-p/1122677#M48649</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2021-12-03T22:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy tool for modifying the source of a query layer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-tool-for-modifying-the-source-of-a-query/m-p/1122725#M48663</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/updatingandfixingdatasources.htm" target="_blank"&gt;Updating and fixing data sources—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;seems to be the place to start&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 10:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-tool-for-modifying-the-source-of-a-query/m-p/1122725#M48663</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-12-04T10:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy tool for modifying the source of a query layer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-tool-for-modifying-the-source-of-a-query/m-p/1123051#M48710</link>
      <description>&lt;P&gt;Thank you, Dan! That's exactly what I needed. I am pleased to find that it works on query layers without any modifications, too.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-tool-for-modifying-the-source-of-a-query/m-p/1123051#M48710</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2021-12-06T17:52:39Z</dc:date>
    </item>
  </channel>
</rss>

