<?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: add sqlserver table into arcgispro and enable editing layer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-sqlserver-table-into-arcgispro-and-enable/m-p/1511753#M11915</link>
    <description>&lt;P&gt;In the code, you are creating a query layer that is read-only&lt;SPAN&gt;&amp;nbsp;when accessed directly from a database connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/what-is-a-query-layer-.htm" target="_self"&gt;the doc&lt;/A&gt;, t&lt;/SPAN&gt;o edit database tables accessed as a query layer,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/sharing/overview/web-feature-layer.htm" target="_blank" rel="noopener"&gt;share&amp;nbsp;&lt;/A&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/sharing/overview/web-feature-layer.htm" target="_blank" rel="noopener"&gt;them as a web feature layer&lt;/A&gt;, and access them&amp;nbsp;&lt;/SPAN&gt;from your portal. The query layer cannot contain virtual columns,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;clauses, or joins. In addition, query layers that access data in a cloud data warehouse are not editable even through a web feature layer.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 16:44:20 GMT</pubDate>
    <dc:creator>Aashis</dc:creator>
    <dc:date>2024-07-29T16:44:20Z</dc:date>
    <item>
      <title>add sqlserver table into arcgispro and enable editing layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-sqlserver-table-into-arcgispro-and-enable/m-p/1511385#M11912</link>
      <description>&lt;P&gt;hi everyone&lt;/P&gt;&lt;P&gt;I want to add sqlserverExpress Table into arcgispro layout with sdk.net . for this purpose i use below code but when&amp;nbsp; i start editing my feature layer ,it says "this workspace is not editable"&lt;/P&gt;&lt;P&gt;what is my code problem?&lt;/P&gt;&lt;P&gt;DatabaseConnectionProperties connectionProperties = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLServer)&lt;BR /&gt;{&lt;BR /&gt;AuthenticationMode = AuthenticationMode.OSA,&lt;BR /&gt;Instance = @"localhost\sqlexpress",&lt;BR /&gt;Database = "db_" + LoginUserControl.userId.Replace("-", "_"),&lt;BR /&gt;Version = "dbo.DEFAULT"&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;Geodatabase geodatabase = new Geodatabase(connectionProperties);&lt;BR /&gt;Map map = MapView.Active.Map;&lt;BR /&gt;CIMSqlQueryDataConnection sqldc = new CIMSqlQueryDataConnection()&lt;BR /&gt;{&lt;BR /&gt;WorkspaceConnectionString = geodatabase.GetConnectionString(),&lt;BR /&gt;GeometryType = GetGeomType(StrGeomType),&lt;BR /&gt;OIDFields = "Nid",&lt;BR /&gt;Srid = "4326",&lt;BR /&gt;SqlQuery = String.Format("select * from [db_{0}].[dbo].[layer_{1}]", LoginUserControl.userId.Replace("-", "_"), layerId),&lt;BR /&gt;Dataset = "test",&lt;BR /&gt;DatasetType=esriDatasetType.esriDTFeatureClass&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;};&lt;BR /&gt;var lcp = new LayerCreationParams(sqldc){ Name = layerName, };&lt;BR /&gt;FeatureLayer flyr = LayerFactory.Instance.CreateLayer&amp;lt;FeatureLayer&amp;gt;(lcp, map);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 06:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-sqlserver-table-into-arcgispro-and-enable/m-p/1511385#M11912</guid>
      <dc:creator>shadiOmrani</dc:creator>
      <dc:date>2024-07-29T06:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: add sqlserver table into arcgispro and enable editing layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-sqlserver-table-into-arcgispro-and-enable/m-p/1511753#M11915</link>
      <description>&lt;P&gt;In the code, you are creating a query layer that is read-only&lt;SPAN&gt;&amp;nbsp;when accessed directly from a database connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/what-is-a-query-layer-.htm" target="_self"&gt;the doc&lt;/A&gt;, t&lt;/SPAN&gt;o edit database tables accessed as a query layer,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/sharing/overview/web-feature-layer.htm" target="_blank" rel="noopener"&gt;share&amp;nbsp;&lt;/A&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/sharing/overview/web-feature-layer.htm" target="_blank" rel="noopener"&gt;them as a web feature layer&lt;/A&gt;, and access them&amp;nbsp;&lt;/SPAN&gt;from your portal. The query layer cannot contain virtual columns,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;clauses, or joins. In addition, query layers that access data in a cloud data warehouse are not editable even through a web feature layer.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 16:44:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-sqlserver-table-into-arcgispro-and-enable/m-p/1511753#M11915</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-07-29T16:44:20Z</dc:date>
    </item>
  </channel>
</rss>

