<?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: Geoprocessing tools in .NET syntax : Syntax to reference an SDE geodatabase in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6802#M175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Stefan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try this code out as soon as I get around my latest issue of not being able to create an instance of the Geoprocessor class... argh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Argh, if I had a dime for everytime I was caught out by forgetting this code!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeManager.Bind(ProductCode.Desktop);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 12:04:47 GMT</pubDate>
    <dc:creator>MichaelBlom</dc:creator>
    <dc:date>2011-05-24T12:04:47Z</dc:date>
    <item>
      <title>Geoprocessing tools in .NET syntax : Syntax to reference an SDE geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6800#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to append shapefiles into an SDE geodatabse.&amp;nbsp; I've tried shp2sde, but I get all kinds of polygon-geometry errors and it fails.&amp;nbsp; Using the DataManagement append tool seems to work, but I need to implement it in my .net application.&amp;nbsp; I guess I could use model builder, and try to call the python script from .net, but I'd like to use the DataManagement library in .net.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem is, I can't find any documentation for how to reference a SDE geodatabase as the ouput.&amp;nbsp; Can anyone help, please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var append = new Append();
append.field_mapping = @"\\server1\Perils\WindStorms\columnmatch.txt";
append.inputs = @"\\server1\Perils\WindStorms\201007N_wind_2010080503.shp";
append.output = "???";
append.schema_type = "NO_TEST";
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 08:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6800#M173</guid>
      <dc:creator>MichaelBlom</dc:creator>
      <dc:date>2011-05-24T08:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing tools in .NET syntax : Syntax to reference an SDE geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6801#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to build a string for the output following the "catalog location scheme", which can be seen when opening an existing feature class in your SDE. It is very easy to build the string when the location of a sde-connection file is known, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;append.output = @"C:\path\Connection to My SDE.sde\sde.username.outputFeatureClass";&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you get my example &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you create a connection to an SDE, the sde connection file is created in the application data folder of the user. When the users name is "john" for example, the sde connection file is located in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Documents and Settings\john\Application Data\ESRI\ArcCatalog\Connection to SDE.sde&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;depending on your Windows Version, this may vary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may require some logic to point to the connection file, when your code has to be kind of generic for all kinds of users, operating systems, database management system (Oracle, MS SQL, Postgres?), etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards, Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 09:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6801#M174</guid>
      <dc:creator>StefanOffermann</dc:creator>
      <dc:date>2011-05-24T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing tools in .NET syntax : Syntax to reference an SDE geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6802#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Stefan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try this code out as soon as I get around my latest issue of not being able to create an instance of the Geoprocessor class... argh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Argh, if I had a dime for everytime I was caught out by forgetting this code!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeManager.Bind(ProductCode.Desktop);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 12:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6802#M175</guid>
      <dc:creator>MichaelBlom</dc:creator>
      <dc:date>2011-05-24T12:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing tools in .NET syntax : Syntax to reference an SDE geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6803#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you get this solved? I am stuck in the same spot you were.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlos&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi there, &lt;BR /&gt;&lt;BR /&gt;I'd like to append shapefiles into an SDE geodatabse.&amp;nbsp; I've tried shp2sde, but I get all kinds of polygon-geometry errors and it fails.&amp;nbsp; Using the DataManagement append tool seems to work, but I need to implement it in my .net application.&amp;nbsp; I guess I could use model builder, and try to call the python script from .net, but I'd like to use the DataManagement library in .net.&lt;BR /&gt;&lt;BR /&gt;Problem is, I can't find any documentation for how to reference a SDE geodatabase as the ouput.&amp;nbsp; Can anyone help, please?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var append = new Append();
append.field_mapping = @"\\server1\Perils\WindStorms\columnmatch.txt";
append.inputs = @"\\server1\Perils\WindStorms\201007N_wind_2010080503.shp";
append.output = "???";
append.schema_type = "NO_TEST";
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6803#M176</guid>
      <dc:creator>CarlosPiccirillo</dc:creator>
      <dc:date>2021-12-10T20:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing tools in .NET syntax : Syntax to reference an SDE geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6804#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, I didn't find any solution to this. I've moved onto a different project. I will need to come back and look at this within a few months though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My suggestion would be to try and do as much as you can in python, it doesn't seem like the geoprocessing tools in .net are very well supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocessing-tools-in-net-syntax-syntax-to/m-p/6804#M177</guid>
      <dc:creator>MichaelBlom</dc:creator>
      <dc:date>2011-07-18T14:25:03Z</dc:date>
    </item>
  </channel>
</rss>

