<?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 Service - Lock Database Schema option missing in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-lock-database-schema-option/m-p/72622#M2819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no such as an SOE for a GP Service. The extension model for GP is different, in that you create a custom GP tool in CPP, .NET or Java, execute it successfully in Desktop and then publish that as a GP Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ajit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 15:29:20 GMT</pubDate>
    <dc:creator>AjitDharmik</dc:creator>
    <dc:date>2013-04-11T15:29:20Z</dc:date>
    <item>
      <title>Geoprocessing Service - Lock Database Schema option missing</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-lock-database-schema-option/m-p/72620#M2817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In 10.1 sp1 I can avoid a service locking my SDE data by unchecking the "Lock Database Schema" box. This option is not available for a geoprocessing service. Is there a reason that it is missing, or a way for me to disable the schema locking for geoprocessing services?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 20:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-lock-database-schema-option/m-p/72620#M2817</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2013-03-22T20:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service - Lock Database Schema option missing</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-lock-database-schema-option/m-p/72621#M2818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In 10.1 sp1 I can avoid a service locking my SDE data by unchecking the "Lock Database Schema" box. This option is not available for a geoprocessing service. Is there a reason that it is missing, or a way for me to disable the schema locking for geoprocessing services?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am unsure know why Esri does not expose a "Lock Database Schema" option for Geoprocessing services, but it may be possible for you to control this behavior programmatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you create a lightweight Server Object Extension (SOE) for Geoprocessing services, you should be able to implement the &lt;/SPAN&gt;&lt;STRONG&gt;Construct &lt;/STRONG&gt;&lt;SPAN&gt; method off the &lt;/SPAN&gt;&lt;STRONG&gt;IObjectConstruct&lt;/STRONG&gt;&lt;SPAN&gt; interface and disable (or enable) schema locking on the workspace factory (and all workspaces it creates/manages).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a quick/untested code snippet that you can try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private IServerObjectHelper _serverObjectHelper;
private IWorkspace _workspace;

public void Init(IServerObjectHelper serverObjectHelper)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; _serverObjectHelper = serverObjectHelper;
&amp;nbsp;&amp;nbsp;&amp;nbsp; _workspace = (_serverObjectHelper.ServerObject as IGeoDataServerObjects).DefaultWorkingWorkspace;
}

public void Contruct(IPropertySet propertSet)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Disable schema locking
&amp;nbsp;&amp;nbsp;&amp;nbsp; (_workspace.WorkspaceFactory as IWorkspaceFactoryLockControl).DisableSchemaLocking();
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:49:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-lock-database-schema-option/m-p/72621#M2818</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2021-12-10T22:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service - Lock Database Schema option missing</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-lock-database-schema-option/m-p/72622#M2819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no such as an SOE for a GP Service. The extension model for GP is different, in that you create a custom GP tool in CPP, .NET or Java, execute it successfully in Desktop and then publish that as a GP Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ajit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 15:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-lock-database-schema-option/m-p/72622#M2819</guid>
      <dc:creator>AjitDharmik</dc:creator>
      <dc:date>2013-04-11T15:29:20Z</dc:date>
    </item>
  </channel>
</rss>

