<?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 How I can shift non-spatial tables into enterperise geodatabase without changing primary key and foreignkeys in sql server? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/how-i-can-shift-non-spatial-tables-into/m-p/826287#M4027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, i have two database in sql server 2012. One is enzerprise geodatabase and another is a simple attribute datase. Now i need to shift all the tables of attribute db to geodatabase. I have tried in several ways without changing the Key fields, but i am facing some troubles regarding OBJECTID, Date data type and primary keys and foreign key are not generating. How I can shift all the tables data and schema together? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already I have shifted tables but there are no pk and fk inside and I cannot avoiding making OBJECTID instead of ID fields (only if I just drag and drop table into geodatabase in arcgis- but those table has not any id will make a objectid). The other problem is no tables now has Date type. I know about datetime2 data type and now i am making newly inside geodatabase new tables, but is it the only solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muqit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 15:33:39 GMT</pubDate>
    <dc:creator>Muqit_Zoarder</dc:creator>
    <dc:date>2017-09-25T15:33:39Z</dc:date>
    <item>
      <title>How I can shift non-spatial tables into enterperise geodatabase without changing primary key and foreignkeys in sql server?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/how-i-can-shift-non-spatial-tables-into/m-p/826287#M4027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, i have two database in sql server 2012. One is enzerprise geodatabase and another is a simple attribute datase. Now i need to shift all the tables of attribute db to geodatabase. I have tried in several ways without changing the Key fields, but i am facing some troubles regarding OBJECTID, Date data type and primary keys and foreign key are not generating. How I can shift all the tables data and schema together? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already I have shifted tables but there are no pk and fk inside and I cannot avoiding making OBJECTID instead of ID fields (only if I just drag and drop table into geodatabase in arcgis- but those table has not any id will make a objectid). The other problem is no tables now has Date type. I know about datetime2 data type and now i am making newly inside geodatabase new tables, but is it the only solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muqit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 15:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/how-i-can-shift-non-spatial-tables-into/m-p/826287#M4027</guid>
      <dc:creator>Muqit_Zoarder</dc:creator>
      <dc:date>2017-09-25T15:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How I can shift non-spatial tables into enterperise geodatabase without changing primary key and foreignkeys in sql server?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/how-i-can-shift-non-spatial-tables-into/m-p/826288#M4028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using 'Generate Scripts' followed by 'SQL Server Import and Export Wizard'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://williamsportwebdeveloper.com/cgi/wp/?p=153" title="http://williamsportwebdeveloper.com/cgi/wp/?p=153"&gt;SQL Server Data Import – How To Preserve Primary Keys and Identity Fields | Williamsport Web Developer Weblog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/10630888/how-to-import-tables-without-losing-indexes-and-keys-in-sql-server-2008" title="https://stackoverflow.com/questions/10630888/how-to-import-tables-without-losing-indexes-and-keys-in-sql-server-2008"&gt;How to import tables without losing indexes and keys in SQL Server 2008 - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is actually a question for the Microsoft Forums more than an Esri forum...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 09:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/how-i-can-shift-non-spatial-tables-into/m-p/826288#M4028</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2017-09-26T09:36:29Z</dc:date>
    </item>
  </channel>
</rss>

