<?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: Table not found error while trying to register SQL spatial table in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51455#M2943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a *really* bad idea to do any table creation in a database as the administrative user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(sa, SYSTEM, root,...).&amp;nbsp; The same goes for using 'sde' or any other internal management&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;account.&amp;nbsp; Instead, create ownership accounts and roles and manage access to the created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objects through roles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this particular case, the problem is that the login does not match the user and schema,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;since 'sa' maps to 'dbo'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2011 10:05:28 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2011-11-15T10:05:28Z</dc:date>
    <item>
      <title>Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51454#M2942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to register a SQL Server spatial table in ArcSDE with following command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;sdelayer -o register -l dbo.baabLeitung_l,gFeature -C OID,SDE -e l3+ -R 6 -i sde:sqlserver:db-server2008\sql2008 -u sa -p mypwd -s DB-Server2008 -t GEOMETRY -D doeverden&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you see, I use a direct connection to the database server. The spatial table has a geometry column of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;STRONG&gt;gFeature&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;. It has line geometry (linestring). If I execute the command, the following error will be raised every time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;DBMS table not found (-37)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the table is there and can be listed with the command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;sdetable -o describe -t dbo.baabLeitung_l -i sde:sqlserver:db-server2008\sql2008 -s DB-Server2008 -D doeverden -u sa -p mypwd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used here the same connection and the listed table can be checked in the attachment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I could not figure out what the error means. Perhaps someone can help! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gang&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 07:36:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51454#M2942</guid>
      <dc:creator>GangYang</dc:creator>
      <dc:date>2011-11-15T07:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51455#M2943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a *really* bad idea to do any table creation in a database as the administrative user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(sa, SYSTEM, root,...).&amp;nbsp; The same goes for using 'sde' or any other internal management&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;account.&amp;nbsp; Instead, create ownership accounts and roles and manage access to the created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;objects through roles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this particular case, the problem is that the login does not match the user and schema,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;since 'sa' maps to 'dbo'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 10:05:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51455#M2943</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-11-15T10:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51456#M2944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply, Vangelo!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just testing the work flow: sql spatial -&amp;gt; register -&amp;gt; edit in ArcGIS. The owner of the table is sa. And one of the condition for the registration (according to the online help): only the owner of table is allowed to do this, so I used the 'sa'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You said the problem is that the login does not match the user and schema. But if 'sa' maps to 'dbo', it should be ok!? What would be the correct syntax?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 12:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51456#M2944</guid>
      <dc:creator>GangYang</dc:creator>
      <dc:date>2011-11-15T12:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51457#M2945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;*User* 'sa' does not own the table, *login* 'sa' does (as user 'dbo'). This is not one of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;most compelling reasons not to use 'sa' for table creation, but it is a critical problem in your&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation also recommends creation of data ownership accounts, and provides the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;guidance that login must match user must match schema. Registration will function if you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;follow this guidance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 13:05:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51457#M2945</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-11-15T13:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51458#M2946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand it correctly, the option &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;-u&lt;/STRONG&gt;&lt;SPAN&gt; of &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;sdelayer &lt;/STRONG&gt;&lt;SPAN&gt;requires a login (for my case &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;sa&lt;/STRONG&gt;&lt;SPAN&gt;). SQL Server maps it to a database user &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;dbo&lt;/STRONG&gt;&lt;SPAN&gt;. I checked that in SQL Server. All seems to be correct (-&amp;gt;attachment UserMapping.jpg)?! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps could you give me an example, how the login/user/schema/ should look like?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 14:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51458#M2946</guid>
      <dc:creator>GangYang</dc:creator>
      <dc:date>2011-11-15T14:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51459#M2947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Login 'qcuser', user 'qcuser', schema 'qcuser'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 16:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51459#M2947</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-11-15T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51460#M2948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I followed your suggestion and created a login 'doeverden', a user 'doeverden' in the database and this user has a schema with the same name (please refer to the attached picture). The user is also the db-owner. With this login i can list the table (with sdotable -o describe), the connection in arccatalog has also no problem to show the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the registration fails as before with the error "DBMS table not found (-37)". What could be wrong? Is there any more detailed documentation on this registration issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank your for your patience.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 07:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51460#M2948</guid>
      <dc:creator>GangYang</dc:creator>
      <dc:date>2011-11-16T07:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found error while trying to register SQL spatial table</title>
      <link>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51461#M2949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the user is the database owner, then you have login 'doeverden', user 'dbo'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While I was first enamored by the Sybase characteristic that a login could map to different users,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I soon began to loathe what it meant for applications trying to identify which login was associated &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with what user.&amp;nbsp; I've avoided using 'dbo' since the mid-90's, don't know how (or if it's even possible)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to make it function with ArcSDE. Please contact Tech Support for further assistance in this matter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 10:27:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-not-found-error-while-trying-to-register-sql/m-p/51461#M2949</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-11-16T10:27:46Z</dc:date>
    </item>
  </channel>
</rss>

