<?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: connect to geodatabase arcobjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/connect-to-geodatabase-arcobjects/m-p/21816#M546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nadir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use direct connect.&lt;/P&gt;&lt;P&gt;The help is not very updated but you use the same method as for workgroup sde database.&lt;/P&gt;&lt;P&gt;Check here:&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcobjects/latest/java/2d7c5faf-6427-11dc-9ca3-0b35f906bb2e.htm#GeoWk" title="https://desktop.arcgis.com/en/arcobjects/latest/java/2d7c5faf-6427-11dc-9ca3-0b35f906bb2e.htm#GeoWk"&gt;How to connect to a geodatabase—ArcObjects 10.4 Help for Java | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the ArcMap connect doc, it is basicaly the same&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/connect-sqlserver.htm" title="https://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/connect-sqlserver.htm"&gt;Connect to Microsoft SQL Server from ArcGIS—Help | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2020 04:50:07 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2020-07-16T04:50:07Z</dc:date>
    <item>
      <title>connect to geodatabase arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/connect-to-geodatabase-arcobjects/m-p/21815#M545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;we have geodatabase in 10.5 and sql server 2016.i have to write one web service.before we connect to geodatabase when arcsde application server insatlled.But after 10.3 ESRI obselete ARCSDE server.so in my new enviornment i dont have SDE server installation.below function return worksapce in old envirnment.But SDE finish.I cant connect to geodatabase in new enviornemt.so how to connect to geodatabse without SDE server installation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Below code through exception SDE not running.How to solve this in 10.5 arcobjects SDK my geodatabase is in 2016 sq server.i know sdeserver&amp;nbsp; not install.But i want to connect to geodattabase without sde server.&lt;/P&gt;&lt;P&gt;private IWorkspace getWorkspace()&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; ESRI.ArcGIS.esriSystem.AoInitialize aoInit = null;&lt;BR /&gt; esriLicenseStatus licStatus;&lt;BR /&gt; IWorkspace workspace = null;&lt;BR /&gt; string status = "";&lt;BR /&gt; try&lt;BR /&gt; {&lt;BR /&gt; Console.WriteLine("Obtaining license");&lt;BR /&gt; if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null)&lt;BR /&gt; ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;BR /&gt; aoInit = new ESRI.ArcGIS.esriSystem.AoInitialize();&lt;BR /&gt; licStatus = aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeStandard);&lt;BR /&gt; if (licStatus == esriLicenseStatus.esriLicenseCheckedOut)&lt;BR /&gt; {&lt;BR /&gt; Console.WriteLine("Ready with license.");&lt;BR /&gt; if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null)&lt;BR /&gt; ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;BR /&gt; IPropertySet propertySet = new PropertySet();&lt;BR /&gt;&lt;BR /&gt; propertySet.SetProperty("SERVER", "IP");&lt;BR /&gt; propertySet.SetProperty("INSTANCE", "5151");&lt;BR /&gt; propertySet.SetProperty("DATABASE", "database");&lt;BR /&gt; propertySet.SetProperty("USER", "user");&lt;BR /&gt; propertySet.SetProperty("PASSWORD", "user");&lt;BR /&gt; propertySet.SetProperty("Authentication_mode", "DBMS");&lt;BR /&gt; propertySet.SetProperty("VERSION", "SDE.DEFAULT");&lt;BR /&gt; Type factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory");&lt;BR /&gt; IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType);&lt;BR /&gt; workspace = workspaceFactory.Open(propertySet, 0);&lt;BR /&gt; if (workspace != null) {&lt;BR /&gt; return workspace;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; catch (Exception ex)&lt;BR /&gt; {&lt;BR /&gt; Console.WriteLine(ex.Message);&lt;BR /&gt; status = ex.Message.ToString()+" "+ex.Source;&lt;BR /&gt; }&lt;BR /&gt; return workspace;&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 11:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/connect-to-geodatabase-arcobjects/m-p/21815#M545</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2020-07-15T11:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: connect to geodatabase arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/connect-to-geodatabase-arcobjects/m-p/21816#M546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nadir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use direct connect.&lt;/P&gt;&lt;P&gt;The help is not very updated but you use the same method as for workgroup sde database.&lt;/P&gt;&lt;P&gt;Check here:&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcobjects/latest/java/2d7c5faf-6427-11dc-9ca3-0b35f906bb2e.htm#GeoWk" title="https://desktop.arcgis.com/en/arcobjects/latest/java/2d7c5faf-6427-11dc-9ca3-0b35f906bb2e.htm#GeoWk"&gt;How to connect to a geodatabase—ArcObjects 10.4 Help for Java | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the ArcMap connect doc, it is basicaly the same&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/connect-sqlserver.htm" title="https://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/connect-sqlserver.htm"&gt;Connect to Microsoft SQL Server from ArcGIS—Help | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 04:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/connect-to-geodatabase-arcobjects/m-p/21816#M546</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2020-07-16T04:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: connect to geodatabase arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/connect-to-geodatabase-arcobjects/m-p/21817#M547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; "&gt;propertySet.SetProperty("SERVER", "IP");&lt;/STRONG&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;STRONG style="background-color: #ffffff; "&gt;propertySet.SetProperty("INSTANCE", "sde:sqlServer:ServerName");-----this is the line i change&lt;/STRONG&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;STRONG style="background-color: #ffffff; "&gt;propertySet.SetProperty("DATABASE", "database");&lt;/STRONG&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;STRONG style="background-color: #ffffff; "&gt;propertySet.SetProperty("USER", "user");&lt;/STRONG&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;STRONG style="background-color: #ffffff; "&gt;propertySet.SetProperty("PASSWORD", "user");&lt;/STRONG&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;STRONG style="background-color: #ffffff; "&gt;propertySet.SetProperty("Authentication_mode", "DBMS");&lt;/STRONG&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;STRONG style="background-color: #ffffff; "&gt;propertySet.SetProperty("VERSION", "SDE.DEFAULT");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; "&gt;Its working like above settings.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; "&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 07:15:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/connect-to-geodatabase-arcobjects/m-p/21817#M547</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2020-07-20T07:15:24Z</dc:date>
    </item>
  </channel>
</rss>

