<?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: ArcGIS Pro Add-In SDK C# Issue: Create SQL Server database connection connects to different database in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-sdk-c-issue-create-sql-server/m-p/1241634#M9188</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you able to connect to your SQL Server this way? Mine is not working. It says connected successfully but it's not (no connections made on the server side).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 17:41:18 GMT</pubDate>
    <dc:creator>ParhatM</dc:creator>
    <dc:date>2022-12-15T17:41:18Z</dc:date>
    <item>
      <title>ArcGIS Pro Add-In SDK C# Issue: Create SQL Server database connection connects to different database</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-sdk-c-issue-create-sql-server/m-p/1133842#M7611</link>
      <description>&lt;P&gt;I'm using ArcGIS Pro version 2.9 and Visual Studio 2019 C# language.&lt;/P&gt;&lt;P&gt;I have an Add-In app that creates a SQL Server database connection. Problem is it connects to&lt;BR /&gt;a different database even though I specified the actual database name.&lt;/P&gt;&lt;P&gt;Code snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private void ConnectToSQLServerDb()
{
    try
    {
        string outFolder = E:\WorkingFolder\MyAddIn;
	string outName = "MGConnection.sde";

	var args = Geoprocessing.MakeValueArray(outFolder, outName, "SQL SERVER", "ServerInstance", "OPERATING_SYSTEM_AUTH", "MGDatabase");
	var gp_result = Geoprocessing.ExecuteToolAsync("CreateDatabaseConnection_management", Geoprocessing.MakeValueArray(args.ToArray()));


	ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Finished creating database connection: ", "Result", MessageBoxButton.OK, MessageBoxImage.Information);
    }
    catch (Exception ex)
    {
	ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Failed to create database connection: " + ex.Message, "Error Message", MessageBoxButton.OK, MessageBoxImage.Error);
    }
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 14:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-sdk-c-issue-create-sql-server/m-p/1133842#M7611</guid>
      <dc:creator>JadedEarth</dc:creator>
      <dc:date>2022-01-14T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Add-In SDK C# Issue: Create SQL Server database connection connects to different database</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-sdk-c-issue-create-sql-server/m-p/1134071#M7617</link>
      <description>&lt;P&gt;Never mind.&amp;nbsp; I tried using the Geoprocessing tool and it's doing the same thing as my code.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 21:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-sdk-c-issue-create-sql-server/m-p/1134071#M7617</guid>
      <dc:creator>JadedEarth</dc:creator>
      <dc:date>2022-01-14T21:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Add-In SDK C# Issue: Create SQL Server database connection connects to different database</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-sdk-c-issue-create-sql-server/m-p/1241634#M9188</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you able to connect to your SQL Server this way? Mine is not working. It says connected successfully but it's not (no connections made on the server side).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-add-in-sdk-c-issue-create-sql-server/m-p/1241634#M9188</guid>
      <dc:creator>ParhatM</dc:creator>
      <dc:date>2022-12-15T17:41:18Z</dc:date>
    </item>
  </channel>
</rss>

