<?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: Python script to create multiple file geodatabases from enterprise geodatabase, in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654627#M2158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Jamal&lt;BR /&gt;&lt;BR /&gt;You should first create a connection file to each database.&lt;BR /&gt;Then try this:&lt;BR /&gt;arcpy.env.workspace = r'C:\Users\XXX\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog'&lt;BR /&gt;ls&amp;nbsp; = arcpy.ListFiles("*.sde")&lt;BR /&gt;&lt;BR /&gt;Then you will have a list of all your databases.&lt;BR /&gt;For each one you should create a FGDB.&lt;BR /&gt;Then use arcpy.ListFeatureclasses to get a list of layers to copy.&lt;BR /&gt;For each one you should do Featureclass to Featureclass for each one.&lt;BR /&gt;If you have more complex data (relashenship, geometric network, etc) you will have to work harder.&lt;BR /&gt;&lt;BR /&gt;Have fun&lt;BR /&gt;Mody&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much James and mody for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought that there might be a very end-user script tool that can be used to create file geodatabases from enterprise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 18:27:24 GMT</pubDate>
    <dc:creator>JamalNUMAN</dc:creator>
    <dc:date>2014-03-25T18:27:24Z</dc:date>
    <item>
      <title>Python script to create multiple file geodatabases from enterprise geodatabase,</title>
      <link>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654624#M2155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Python script to create multiple file geodatabases from enterprise geodatabase,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I�??m looking for a python script that creates multiple file geodatabases from multiple enterprise geodatabases in one go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in the screenshot below, I have 5 SQL geodatabase stored in the mdf folder, and I wanted to create 5 file geodatabases (from these SQL files) and store them in the gdb folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32427[/ATTACH], [ATTACH=CONFIG]32428[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there such script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 19:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654624#M2155</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2014-03-23T19:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to create multiple file geodatabases from enterprise geodatabase,</title>
      <link>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654625#M2156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not performed this operation and unsure of an exact solution, but have a look at the arcpy.ImportXMLWorkspaceDocument_management method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000014s000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000014s000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIRC, you can specify the target Geodatabase as an ArcSDE instance, perhaps if you have connections already setup you can simply reference the .sde file to set the workspace???&amp;nbsp; Not sure on that but might be worth to check into.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 10:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654625#M2156</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-03-24T10:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to create multiple file geodatabases from enterprise geodatabase,</title>
      <link>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654626#M2157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mody&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jamal&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should first create a connection file to each database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = r'C:\Users\XXX\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ls&amp;nbsp; = arcpy.ListFiles("*.sde")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you will have a list of all your databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For each one you should create a FGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then use arcpy.ListFeatureclasses to get a list of layers to copy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For each one you should do Featureclass to Featureclass for each one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have more complex data (relashenship, geometric network, etc) you will have to work harder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have fun&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 05:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654626#M2157</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-03-25T05:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to create multiple file geodatabases from enterprise geodatabase,</title>
      <link>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654627#M2158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Jamal&lt;BR /&gt;&lt;BR /&gt;You should first create a connection file to each database.&lt;BR /&gt;Then try this:&lt;BR /&gt;arcpy.env.workspace = r'C:\Users\XXX\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog'&lt;BR /&gt;ls&amp;nbsp; = arcpy.ListFiles("*.sde")&lt;BR /&gt;&lt;BR /&gt;Then you will have a list of all your databases.&lt;BR /&gt;For each one you should create a FGDB.&lt;BR /&gt;Then use arcpy.ListFeatureclasses to get a list of layers to copy.&lt;BR /&gt;For each one you should do Featureclass to Featureclass for each one.&lt;BR /&gt;If you have more complex data (relashenship, geometric network, etc) you will have to work harder.&lt;BR /&gt;&lt;BR /&gt;Have fun&lt;BR /&gt;Mody&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much James and mody for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought that there might be a very end-user script tool that can be used to create file geodatabases from enterprise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 18:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/python-script-to-create-multiple-file-geodatabases/m-p/654627#M2158</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2014-03-25T18:27:24Z</dc:date>
    </item>
  </channel>
</rss>

