<?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: Getting connection properties without login in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-connection-properties-without-login/m-p/881721#M5696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a current limitation of the api, and will be addressed in the next release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result will be a pattern to generate a DatabaseConnectionProperties directly from a DatabaseConnecitonFile without requiring that the&amp;nbsp;Geodatabase&amp;nbsp;is opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your question!&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2017 20:16:59 GMT</pubDate>
    <dc:creator>ColinZwicker</dc:creator>
    <dc:date>2017-11-09T20:16:59Z</dc:date>
    <item>
      <title>Getting connection properties without login</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-connection-properties-without-login/m-p/881720#M5695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a database connection file and want to get its connection properties.&lt;/P&gt;&lt;P&gt;The problem is that the connection properties do not include a valid username and password and I want to avoid the standard login popup to appear.&lt;/P&gt;&lt;P&gt;Is there any way of getting the properties, so I can add username and password from code and connect with that data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ultimate goal is to make my own custom login popup, so basically I want to get the properties, then add username and password from my own login window and then connect to the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-connection-properties-without-login/m-p/881720#M5695</guid>
      <dc:creator>FabianPfromm</dc:creator>
      <dc:date>2017-11-09T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting connection properties without login</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-connection-properties-without-login/m-p/881721#M5696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a current limitation of the api, and will be addressed in the next release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result will be a pattern to generate a DatabaseConnectionProperties directly from a DatabaseConnecitonFile without requiring that the&amp;nbsp;Geodatabase&amp;nbsp;is opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your question!&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 20:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-connection-properties-without-login/m-p/881721#M5696</guid>
      <dc:creator>ColinZwicker</dc:creator>
      <dc:date>2017-11-09T20:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting connection properties without login</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-connection-properties-without-login/m-p/881722#M5697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabian,&lt;/P&gt;&lt;P&gt;We added&amp;nbsp;a GetDatabaseConnectionProperties function in the DatabaseClient class for the&amp;nbsp;ArcGIS&amp;nbsp;Pro 2.1 release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #2b91af; font-size: 9.5pt;"&gt;DatabaseConnectionFile&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt;"&gt; connectionFile = &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.5pt;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af; font-size: 9.5pt;"&gt;DatabaseConnectionFile&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9.5pt;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af; font-size: 9.5pt;"&gt;Uri&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9.5pt;"&gt;@"C:\my.sde"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #2b91af; font-size: 9.5pt;"&gt;DatabaseConnectionProperties&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt;"&gt;expectedConnectionProperties&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 9.5pt;"&gt; = &lt;/STRONG&gt;&lt;SPAN style="color: #2b91af; font-size: 9.5pt;"&gt;DatabaseClient&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 9.5pt;"&gt;.GetDatabaseConnectionProperties(&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9.5pt;"&gt;connectionFile&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 9.5pt;"&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This will allow you to modify (assign a user password etc) the connection properties before using them to open a new Geodatabase. By having it available on the DatabaseClient it can be used for connections files that point to Geodatabases or DBMS's without the Geodatabase metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy connecting!&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 17:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-connection-properties-without-login/m-p/881722#M5697</guid>
      <dc:creator>ColinZwicker</dc:creator>
      <dc:date>2017-11-15T17:58:13Z</dc:date>
    </item>
  </channel>
</rss>

