<?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 Can I grant  privileges for geodatabase dataset stored in enterprise SQL Sever with SQL but not arcgis client or python script? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/can-i-grant-privileges-for-geodatabase-dataset/m-p/211437#M1344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir who will deal with it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/grant-dataset-privileges.htm"&gt;offical document&lt;/A&gt;, there are three ways to grant and revoke dataset privileges as follows:&lt;/P&gt;&lt;P&gt;1.&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/grant-dataset-privileges.htm#GUID-27A36228-7B36-4A2C-B80E-855ED168D65C" style="color: #007ac2; background-color: #fefefe; text-decoration: none;"&gt;Use the Privileges dialog box&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/grant-dataset-privileges.htm#ESRI_SECTION1_4771E57CA5184AB3B296F03C8BB132AC" style="color: #007ac2; background-color: #fefefe; text-decoration: none;"&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Change Privileges&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3.&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/grant-dataset-privileges.htm#ESRI_SECTION1_9752C540DC9141D1B200E82C7621217B" style="color: #007ac2; background-color: #fefefe; text-decoration: none;"&gt;Use a Python script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to know is, when geodataset stores in enterprise SQL server with sde,&amp;nbsp; if I can&amp;nbsp;&lt;SPAN&gt;g&lt;/SPAN&gt;&lt;SPAN&gt;rant and revoke dataset privileges with SQL statement like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;Use&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;xxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;Grant&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: gray;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;INSERT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: gray;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: fuchsia;"&gt;UPDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: gray;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;DELETE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;xxx.xxx.xxx&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;xxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the &lt;A href="https://docs.microsoft.com/en-us/sql/t-sql/statements/grant-object-permissions-transact-sql?view=sql-server-ver15"&gt;document&lt;/A&gt; of Microsoft SQL server.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2020 03:53:30 GMT</pubDate>
    <dc:creator>gaofangwan</dc:creator>
    <dc:date>2020-04-01T03:53:30Z</dc:date>
    <item>
      <title>Can I grant  privileges for geodatabase dataset stored in enterprise SQL Sever with SQL but not arcgis client or python script?</title>
      <link>https://community.esri.com/t5/developers-questions/can-i-grant-privileges-for-geodatabase-dataset/m-p/211437#M1344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir who will deal with it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/grant-dataset-privileges.htm"&gt;offical document&lt;/A&gt;, there are three ways to grant and revoke dataset privileges as follows:&lt;/P&gt;&lt;P&gt;1.&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/grant-dataset-privileges.htm#GUID-27A36228-7B36-4A2C-B80E-855ED168D65C" style="color: #007ac2; background-color: #fefefe; text-decoration: none;"&gt;Use the Privileges dialog box&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/grant-dataset-privileges.htm#ESRI_SECTION1_4771E57CA5184AB3B296F03C8BB132AC" style="color: #007ac2; background-color: #fefefe; text-decoration: none;"&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Change Privileges&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3.&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/grant-dataset-privileges.htm#ESRI_SECTION1_9752C540DC9141D1B200E82C7621217B" style="color: #007ac2; background-color: #fefefe; text-decoration: none;"&gt;Use a Python script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to know is, when geodataset stores in enterprise SQL server with sde,&amp;nbsp; if I can&amp;nbsp;&lt;SPAN&gt;g&lt;/SPAN&gt;&lt;SPAN&gt;rant and revoke dataset privileges with SQL statement like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;Use&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;xxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;Grant&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: gray;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;INSERT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: gray;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: fuchsia;"&gt;UPDATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: gray;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;DELETE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;xxx.xxx.xxx&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;xxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the &lt;A href="https://docs.microsoft.com/en-us/sql/t-sql/statements/grant-object-permissions-transact-sql?view=sql-server-ver15"&gt;document&lt;/A&gt; of Microsoft SQL server.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 03:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-i-grant-privileges-for-geodatabase-dataset/m-p/211437#M1344</guid>
      <dc:creator>gaofangwan</dc:creator>
      <dc:date>2020-04-01T03:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I grant  privileges for geodatabase dataset stored in enterprise SQL Sever with SQL but not arcgis client or python script?</title>
      <link>https://community.esri.com/t5/developers-questions/can-i-grant-privileges-for-geodatabase-dataset/m-p/211438#M1345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you could, but probably not through an Esri API.&amp;nbsp; The "USE database" is incompatible with the Enterprise geodatabase connection file (.sde) being linked to a specific database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory, the USE isn't required, so an &lt;STRONG style="font-family: 'courier new', courier, monospace; "&gt;arcpy.ArcSDESQLExecute()&lt;/STRONG&gt; request could issue the GRANT command, but the&amp;nbsp;principal benefit of&amp;nbsp;using an Enterprise geodatabase is to take advantage of versioning and geodatabase behaviors, and only a tool like&amp;nbsp;&lt;SPAN class=""&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace; "&gt;ChangePrivileges&lt;/STRONG&gt; is going to know which tables participate in geodatabase functionality, so if you roll your own, you might have permission issues later on down the road (for example, feature datasets have the permission of the &lt;EM&gt;least&lt;/EM&gt; access of the members, so if you miss one GRANT, you might not have any access at all).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;- V&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 04:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-i-grant-privileges-for-geodatabase-dataset/m-p/211438#M1345</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2020-04-01T04:49:35Z</dc:date>
    </item>
  </channel>
</rss>

