<?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 ArcGIS Enterprise MS SQL Server Database Users vs DBO in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1491709#M39778</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Initially, I was creating tables in the Enterprise GDB (EGDB, MS SQL) as the Database Owner (dbo schema), and everything worked fine, and still does as DBO.&amp;nbsp; I am able to read/write content in ArcGIS Pro and Python via ArcGIS for Python API or SQLAlchemy.&amp;nbsp; Along the way, I created a user so we didn't share credentials.&amp;nbsp; This user can operate just fine in ArcGIS pro, but any attempts to read/write/access his own tables (or privileged tables) using Python/SQLAlchemy fail with login error "[Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'user'. (18456)".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The user can, however, execute the following with his credentials...&lt;BR /&gt;&lt;BR /&gt;cursor.execute("select name from master.sys.databases")&lt;BR /&gt;&lt;BR /&gt;..and get a return of those high level tables.&amp;nbsp; Login fails trying to read EGDB tables (feature classes).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;P&gt;Enterprise 11.2&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 13:36:46 GMT</pubDate>
    <dc:creator>TylerT</dc:creator>
    <dc:date>2024-06-13T13:36:46Z</dc:date>
    <item>
      <title>ArcGIS Enterprise MS SQL Server Database Users vs DBO</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1491709#M39778</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Initially, I was creating tables in the Enterprise GDB (EGDB, MS SQL) as the Database Owner (dbo schema), and everything worked fine, and still does as DBO.&amp;nbsp; I am able to read/write content in ArcGIS Pro and Python via ArcGIS for Python API or SQLAlchemy.&amp;nbsp; Along the way, I created a user so we didn't share credentials.&amp;nbsp; This user can operate just fine in ArcGIS pro, but any attempts to read/write/access his own tables (or privileged tables) using Python/SQLAlchemy fail with login error "[Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'user'. (18456)".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The user can, however, execute the following with his credentials...&lt;BR /&gt;&lt;BR /&gt;cursor.execute("select name from master.sys.databases")&lt;BR /&gt;&lt;BR /&gt;..and get a return of those high level tables.&amp;nbsp; Login fails trying to read EGDB tables (feature classes).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;P&gt;Enterprise 11.2&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1491709#M39778</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2024-06-13T13:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise MS SQL Server Database Users vs DBO</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1491713#M39779</link>
      <description>&lt;P&gt;Is the "user" account trying to access the tables created by the DBO user?&lt;BR /&gt;&lt;BR /&gt;Have you granted permissions to the "user"?&lt;/P&gt;&lt;P&gt;Can you create another user, like "gis", and see if that account works?&lt;/P&gt;&lt;P&gt;Here are the permissions needed for each type of user:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-sql-server/privileges-sqlserver.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-sql-server/privileges-sqlserver.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:43:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1491713#M39779</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2024-06-13T13:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise MS SQL Server Database Users vs DBO</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1496025#M39834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/567"&gt;@George_Thompson&lt;/a&gt;,&lt;BR /&gt;The 'user' is trying to access tables created both by 'user' and DBO user.&amp;nbsp; I'm getting this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerT_0-1718984384303.png" style="width: 766px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107655iE67E293957F9B17F/image-dimensions/766x35?v=v2" width="766" height="35" role="button" title="TylerT_0-1718984384303.png" alt="TylerT_0-1718984384303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Again, no issues in ArcGIS Pro for user 'test'....and no issues with ArcGIS Pro or Python/SQLAlchemy with the DBO user credentials.&amp;nbsp; It's just when I use Python/SQLAlchemy and user 'test' credentials do I have an issue.&amp;nbsp; Somehow user 'test' is getting blocked at db level.&lt;/P&gt;&lt;P&gt;I did create a new user as suggest, and the same error behavior occurred.&lt;BR /&gt;&lt;BR /&gt;Thanks for any further advice.&lt;BR /&gt;&lt;BR /&gt;Tyler&lt;BR /&gt;Enterprise 11.2&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 15:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1496025#M39834</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2024-06-21T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise MS SQL Server Database Users vs DBO</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1496039#M39835</link>
      <description>&lt;P&gt;Thanks for that information and context. Here is what I am hearing, for clarity:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Works: when using Pro client and the user 'test', no issues.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Error: when using Python/SQLAlchemy script and the 'test' user credentials.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Always works with DBO (database admin) credentials.&lt;/P&gt;&lt;P&gt;I am not sure what would be causing the issue if it works in Pro, at the DB level.&lt;/P&gt;&lt;P&gt;You may want to work with technical support on this. Seems like a Python side issue?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 15:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-enterprise-ms-sql-server-database-users-vs/m-p/1496039#M39835</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2024-06-21T15:53:31Z</dc:date>
    </item>
  </channel>
</rss>

