<?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: Create Database Connection - can't find the feature classes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379189#M29909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I deleted the user and recreated it from the SSMS side. Now I can create a connection with it in both ArcCatalog and SSMS. The problem remains that the connection cannot be made in standalone scripting however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 12:51:09 GMT</pubDate>
    <dc:creator>MKF62</dc:creator>
    <dc:date>2018-02-27T12:51:09Z</dc:date>
    <item>
      <title>Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379181#M29901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&amp;nbsp;&lt;/STRONG&gt;When I try to access the workspace properties of the connection file, it says that the method workspaceType doesn't exist for describing data. When I use the regular 'Database Connections\myDB.sde' connection I can access the workspace properties just fine. When I run desc.dataType on it it comes back as "File"...how do I make it a workspace? The connection file is obviously not being treated as a workspace, and that's the first issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting an exit code of 0 and no errors when I do this, but it's not finding any feature classes so it's not working as I expect it to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I'm creating a connection file using database authentication, setting the workspace to that connection file, then trying to list the feature classes. I get nothing returned. My first thought is that it's a permissions issue but the database user being used for authentication has read and write access, so now I'm not sure what the deal is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateDatabaseConnection_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\Users\xxx\Desktop\GIS_Testing'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'HBMTest.sde'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'SQL_SERVER'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;'sde:sqlserver:myServerName'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'DATABASE_AUTH'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'HBMWriter'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'xxx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;'SAVE_USERNAME'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'myDBName'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\Users\xxx\Desktop\GIS_Testing\HBMTest.sde'&lt;/SPAN&gt;
featClasses &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'*'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fc &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; featClasses&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; fc‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the code below, it works and will list the feature classes, but the purpose of using the "CreateDatabaseConnection" and passing in credentials is because eventually this script will be published up on a server where external users will be running it and they won't have my windows authentication to access the database, so I really need to make sure that the above is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'Database Connections\HBMTest.sde'&lt;/SPAN&gt;
featClasses &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'*'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fc &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; featClasses&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; fc‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing some silly thing in arcpy or is this more likely a permissions issue? These are the permissions set in SQL Server Mgmt Studio for the user:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="397470" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397470_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:30:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379181#M29901</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2021-12-11T17:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379182#M29902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for stuff and giggles, do you get the same error when the user is mapped to the DBO schema? if so, despite the reader writer mappings, your user still has no access to the table, which you'll have to assign explicitly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379182#M29902</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2018-02-26T20:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379183#M29903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response - I'm pretty new to the this stuff, could you explain how to assign that explicitly? The user is mapped to the DBO schema, so maybe that is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397471_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379183#M29903</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2018-02-26T20:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379184#M29904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That might cause an issue having a different user name and schema. In the help documentation, we say that the schema and username must match;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;UL class="" style="color: #4d4d4d; background-color: #fefefe; font-size: 0.875em; margin-top: 0px; margin-bottom: 1.5em; padding: 0px;"&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;All database users who will create data must have a schema in the database. That schema must have the same name as the user name.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/add-users-sqlserver.htm#ESRI_SECTION1_1EF70F32F80041FB9666781BD3D78754" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/add-users-sqlserver.htm#ESRI_SECTION1_1EF70F32F80041FB9666781BD3D78754"&gt;Add logins and users to SQL Server—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless that user is granted db_owner (database level) or SYSADMIN (server level) privileges, I would think that error may happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens when you update the schema to: HabitatTestWriter&amp;nbsp; and keep the permissions the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=341e0503-7c05-4bb0-a238-fb55e87ebb01&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=341e0503-7c05-4bb0-a238-fb55e87ebb01&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379184#M29904</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2018-02-26T20:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379185#M29905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing happens. Still no feature classes are listed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I possibly need to use the Change Privileges geoprocessing tool to assign view/edit privileges to the various tables in the database? Just found this tool, have never used it (this is my first time setting up an enterprise geodatabase).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:48:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379185#M29905</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2018-02-26T20:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379186#M29906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would. It will assign the permissions correctly to all the required objects. Run it as the data owner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379186#M29906</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2018-02-26T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379187#M29907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still getting nothing after doing this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397484_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379187#M29907</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2018-02-26T20:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379188#M29908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure, without looking at it in "person".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to call into Esri Technical Support and have an analyst take a look at it. That could be the quickest way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 20:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379188#M29908</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2018-02-26T20:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379189#M29909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I deleted the user and recreated it from the SSMS side. Now I can create a connection with it in both ArcCatalog and SSMS. The problem remains that the connection cannot be made in standalone scripting however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 12:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379189#M29909</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2018-02-27T12:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create Database Connection - can't find the feature classes</title>
      <link>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379190#M29910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, after much tinkering, I finally got it to work. It took two things:&lt;/P&gt;&lt;P&gt;1) I had to create the User through SQL Server Management Studio instead of using the various geoprocessing tools. I'm still not entirely sure why, but it worked. First (as db_owner) I created a new login (Security &amp;gt; Logins (right-click) &amp;gt; New Login &amp;gt; fill out username, password fields and check appropriate boxes. Then I created the user in the database of interest and created a schema by the same name and assigned it to the user (Database of interest &amp;gt; Security &amp;gt; Users (right click) &amp;gt; New User...&amp;nbsp; and Database of Interest &amp;gt; Security &amp;gt; Schemas (right-click) &amp;gt; New Schema...). Then I tested this connection in ArcCatalog. The user should connect but since it doesn't have any data privileges yet, it won't be able to see any data in the database. When&amp;nbsp;I determined that connection was successful, I tested the connection in SSMS; again it should connect but you shouldn't be able to see any of your feature classes or tables since the user has no privileges yet.&amp;nbsp;Next, I went to Catalog and added an "Editor" role. Steps to do this include creating a DB connection using my db_owner user (my windows authentication in this case), right-click the connection &amp;gt; Administration &amp;gt; Create and Manage Roles. Filled out with "Editor", GRANT, and the name of the user I just created in SSMS. I then went to each feature class and right clicked &amp;gt; Manage &amp;gt; Privileges &amp;gt; Add &amp;gt; "Editor". Then I selected all checkboxes for Select, Insert, Update, Delete. Clicked Ok and returned to SSMS where I connected as my db_owner account. Went to the database of interest &amp;gt; Security folder &amp;gt; Users &amp;gt; opened properties for my new user and made sure it looked like so (Securables and Extended Properties are empty):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="397541" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397541_Capture.JPG" style="width: 620px; height: 218px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="397542" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397542_Capture1.JPG" style="width: 620px; height: 276px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="397543" alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397543_Capture2.JPG" style="width: 620px; height: 253px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In my python script, I removed "sde:sqlserver:" from my instance name and ran the process. This time it connected successfully to my database using my new, database-authenticated user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;arcpy

arcpy.CreateDatabaseConnection_management(&lt;SPAN style="color: #660099;"&gt;out_folder_path&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'C:\Users\xxx\Desktop\GIS_Testing'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660099;"&gt;out_name&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'HBMTest.sde'&lt;/SPAN&gt;, &lt;SPAN style="color: #660099;"&gt;database_platform&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'SQL_SERVER'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660099;"&gt;instance&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'myServerName'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660099;"&gt;account_authentication&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'DATABASE_AUTH'&lt;/SPAN&gt;, &lt;SPAN style="color: #660099;"&gt;username&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'HabitatTestWriter'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660099;"&gt;password&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'xxx'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660099;"&gt;save_user_pass&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'SAVE_USERNAME'&lt;/SPAN&gt;, &lt;SPAN style="color: #660099;"&gt;database&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'HBMTest'&lt;/SPAN&gt;)
arcpy.env.workspace = &lt;SPAN style="color: #008000; font-weight: bold;"&gt;r'C:\Users\xxx\Desktop\GIS_Testing\HBMTest.sde'
&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;
&lt;/SPAN&gt;featClasses = arcpy.ListFeatureClasses()
tables = arcpy.ListTables()
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;fc &lt;SPAN style="color: #000080; font-weight: bold;"&gt;in &lt;/SPAN&gt;featClasses:
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;print &lt;/SPAN&gt;fc&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:30:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-database-connection-can-t-find-the-feature/m-p/379190#M29910</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2021-12-11T17:30:20Z</dc:date>
    </item>
  </channel>
</rss>

