<?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 SDE database programmatically in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321299#M18393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That was exactly what I was looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 22:05:01 GMT</pubDate>
    <dc:creator>ChrisSeabrooke</dc:creator>
    <dc:date>2011-05-17T22:05:01Z</dc:date>
    <item>
      <title>Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321294#M18388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm adding support for SDE to an application that currently allows customers to use personal or file geodatabases. If the database doesn't exist, we create it using the ESRI.ArcGIS.Geodatabase.IWorkspaceFactory.Create method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a personal geodatabase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.IO.FileInfo fInfo = new System.IO.FileInfo("MyDataBase");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workspaceName = workspaceFactory.Create("c:\\Temp\", fInfo.Name, null, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a file geodatabase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.FileGDBWorkspaceFactoryClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workspaceName = workspaceFactory.Create("c:\\Temp\", "MyDataBase", null, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a similar method to create an SDE database? I've found code samples to create a spatial database connection but I have to use ArcCatalog to create the geodatabase in order to use the connection. What we want to do is create the geodatabase using C# code. Has anyone done this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcGIS10, SQLServer Express 2008, ArcEditor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 19:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321294#M18388</guid>
      <dc:creator>ChrisSeabrooke</dc:creator>
      <dc:date>2011-05-11T19:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321295#M18389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Personal and Workgroup ArcSDE have C# hooks in ArcObjects, but Enterprise ArcSDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;requires the use of 'sdesetup' and 'sdeservice' utilities.&amp;nbsp;&amp;nbsp; You can wrap them, but the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;level of artificial intelligence to handle common troubleshooting would add man-years &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the effort.&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, 11 May 2011 22:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321295#M18389</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-05-11T22:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321296#M18390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using personal and workgroup -- so where do I find information about creating the SDE in C# code? I opened an ESRI incident for this question (927165) -- the resolution on that case entered by support is: "Informed user that it is not possible to create the sde geodatabases, but it is possible to connect to the sde geoedatabase and can access the data and perform operatons on the sde data."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 20:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321296#M18390</guid>
      <dc:creator>ChrisSeabrooke</dc:creator>
      <dc:date>2011-05-16T20:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321297#M18391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If Tech Support says the geodatabase creation code is not publicly exposed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then I believe them.&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>Mon, 16 May 2011 22:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321297#M18391</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-05-16T22:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321298#M18392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the following article:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Creating_geodatabases/0001000004t8000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Creating_geodatabases/0001000004t8000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It shows how to create geodatabases stored in SQL Server Express.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 12:08:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321298#M18392</guid>
      <dc:creator>CraigGillgrass</dc:creator>
      <dc:date>2011-05-17T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321299#M18393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That was exactly what I was looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 22:05:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321299#M18393</guid>
      <dc:creator>ChrisSeabrooke</dc:creator>
      <dc:date>2011-05-17T22:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321300#M18394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How did this process turn out? Were you successful?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for information on how to programmatically create a database and schema for a MS SQL Server. However, this requires the user to run the ArcGIS MS SQL Server Post Installation. Is that a process you have to do as well for SQL Express?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does any one have any links or advice on if this is possible? What about work arounds? What if the database was manually created by the user then the schema was created through code via a connection to the new database? What about just creating the database and schema as a personal geodatabase and then programmatically exporting it to xml and importing it into the new manually created database? What about programmatically calling the Post Installation window, trapping for when it sucessfully completes and then programmatically creating the schema in the new database? I'm willing to entertain any workaround. The best solution would be to handle the entire process programmatically or a mix of calling/running the post installation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MS SQL Server 2008 R2 x64&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10 - ArcEditor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows Server 2008 R2 x64&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 22:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321300#M18394</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2012-03-13T22:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create SDE database programmatically</title>
      <link>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321301#M18395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;GR, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are planning to upgrade to 10.1 when it becomes available and you are willing to wait for it; all of the functionality that you are looking for will be available through Python/geoprocessing. You could either use Python scripts directly or you could make geoprocessing calls from your C#/ArcObjects code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-sde-database-programmatically/m-p/321301#M18395</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2012-03-14T14:37:28Z</dc:date>
    </item>
  </channel>
</rss>

