<?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 Re: Best Practices: Changing SQL Server port in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1017094#M6935</link>
    <description>&lt;P&gt;Answer from Tech Support is that if the port changes, you need to update your MXDs. We have a script for doing that but were hoping to save our casual GIS users the trouble. Tech Support did not have a suggestion on how to avoid that other than keep your port the same.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 22:27:06 GMT</pubDate>
    <dc:creator>MatthewRantala1</dc:creator>
    <dc:date>2021-01-14T22:27:06Z</dc:date>
    <item>
      <title>Best Practices: Changing SQL Server port</title>
      <link>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1016204#M6932</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are in the processing in moving our geodatabases to a newer SQL Server (2016) instance. Our IT department wants to use a different port (53094) that we're currently using (1433).&amp;nbsp;&lt;/P&gt;&lt;P&gt;While we could proceed that way, we realize that all of our legacy MXDs would need to have their data sources remapped. So not a good solution (enterprise wide, we probably have thousands of MXDs, although not all used).&lt;/P&gt;&lt;P&gt;We use an alias&amp;nbsp; (GIS_XXX) to reference our database server &amp;amp; what we are trying to determine is if there's a way to essentially create an alias that also specifies the port.&lt;/P&gt;&lt;P&gt;I've been trying to see if I could use a Windows User or System DSN as means but have not gotten that to work yet although that seems like it should partially work. The problem I see with that, however, is that&amp;nbsp; it seems the user/password are embedded there. So if I am able to create a User Data Source named "GIS_XXX" that points to the new instance/port, it will have a specific user name hard-coded in it. We use SQL Server Authentication with multiple accounts (one for data owner, data editor, data viewer, etc) and it does not seem like I can create multiple DSNs with the same name that have different account info in them. Ideally, I would want the credentials in our .sde files to pass through to the DSN.&lt;/P&gt;&lt;P&gt;Any tricks/tips on how to gracefully switch to a different port without having to repath all your legacy MXDs?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 23:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1016204#M6932</guid>
      <dc:creator>MatthewRantala1</dc:creator>
      <dc:date>2021-01-12T23:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices: Changing SQL Server port</title>
      <link>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1017094#M6935</link>
      <description>&lt;P&gt;Answer from Tech Support is that if the port changes, you need to update your MXDs. We have a script for doing that but were hoping to save our casual GIS users the trouble. Tech Support did not have a suggestion on how to avoid that other than keep your port the same.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 22:27:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1017094#M6935</guid>
      <dc:creator>MatthewRantala1</dc:creator>
      <dc:date>2021-01-14T22:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices: Changing SQL Server port</title>
      <link>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1026139#M6961</link>
      <description>&lt;P&gt;Hi Matthew&lt;/P&gt;&lt;P&gt;Might be a little late to the party on this one, but I have previously come across this article concerning SQL aliases -&amp;nbsp;&lt;A href="https://www.sqlshack.com/overview-of-sql-server-alias/" target="_blank"&gt;Overview of SQL Server Aliases (sqlshack.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I haven't needed to use this process myself, but the suggestion is that you can create a SQL alias for a named instance using the named pipes protocol.&amp;nbsp; So a CNAME&amp;nbsp;&lt;EM&gt;GIS_XXX&lt;/EM&gt; could resolve to &lt;EM&gt;dbserver\instance&lt;/EM&gt;&amp;nbsp;without having to specify the instance or port in a connection string.&lt;/P&gt;&lt;P&gt;This would only work if your original alias &lt;EM&gt;GIS_XXX&lt;/EM&gt; was entered without the port in your database connections, which should have been the case given that 1433 is the default instance and the port doesn't need to be specified.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 01:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1026139#M6961</guid>
      <dc:creator>CraigRussell</dc:creator>
      <dc:date>2021-02-12T01:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices: Changing SQL Server port</title>
      <link>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1026279#M6963</link>
      <description>&lt;P&gt;Thanks, Craig.&lt;/P&gt;&lt;P&gt;That looks like it would do exactly what I originally was looking to accomplish. Is kind of moot at this point because our IT team decided to move us to an instance on the default port. But good to know that it could have been done.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/best-practices-changing-sql-server-port/m-p/1026279#M6963</guid>
      <dc:creator>MatthewRantala1</dc:creator>
      <dc:date>2021-02-12T14:41:05Z</dc:date>
    </item>
  </channel>
</rss>

