<?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: Preparing scripted setup of ArcSDE in SQL Server 2012 in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724147#M41016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello:Also when setting up a connection file to use with &lt;STRONG&gt;Enable Enterprise Geodatabase&lt;/STRONG&gt; tool is it best to use sa or sde for username? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't answer your first question regarding the script, but the answer to your second question about the user account is to use the SDE user.&amp;nbsp; Do not use the 'sa' account for things like this; it's just bad practice since the account is too powerful.&amp;nbsp; The Create Enterprise Geodatabase tool will actually create the SDE user if you pick the SDE_SCHEMA (which you said you are doing), so use that same SDE user when running the Enable Enterprise Geodatabase tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 00:56:33 GMT</pubDate>
    <dc:creator>WilliamCraft</dc:creator>
    <dc:date>2014-01-23T00:56:33Z</dc:date>
    <item>
      <title>Preparing scripted setup of ArcSDE in SQL Server 2012</title>
      <link>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724146#M41015</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 setting up a test and development server for ArcSDE with SQL Server 2012. I'm also a total novice DBA. I want to use the SDE_SCHEMA model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not want to use the default storage locations created when using the &lt;/SPAN&gt;&lt;STRONG&gt;Create Enterprise Geodatabase &lt;/STRONG&gt;&lt;SPAN&gt;tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will the following script be sufficient to use as presetup for the &lt;/SPAN&gt;&lt;STRONG&gt;Enable Enterprise Geodatabase&lt;/STRONG&gt;&lt;SPAN&gt; tool and ensure that the sde login, user and schema have the required permissions and configuration for proper geodatabase administration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when setting up a connection file to use with &lt;/SPAN&gt;&lt;STRONG&gt;Enable Enterprise Geodatabase&lt;/STRONG&gt;&lt;SPAN&gt; tool is it best to use sa or sde for username? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;USE master;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE DATABASE DEVARCGISSDETEST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ON &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;( NAME = DEVARCGISSDETEST,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILENAME = 'C:\MSSQLData\DEVARCGISSDE\DEVARCGISSDETEST.mdf',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIZE = 8192MB,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILEGROWTH = 1024MB )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOG ON&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;( NAME = DEVARCGISSDETEST_log,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILENAME = 'C:\MSSQLLogs\DEVARCGISSDE\DEVARCGISSDETEST_log.ldf',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIZE = 8192MB,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILEGROWTH = 1024MB );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ALTER AUTHORIZATION ON DATABASE :: DEVARCGISSDETEST TO sa;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE LOGIN sde WITH PASSWORD = '&amp;lt;!1Password!&amp;gt;', CHECK_EXPIRATION=OFF, CHECK_POLICY=ON;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXEC master..sp_addsrvrolemember @loginame = N'sde', @rolename = N'processadmin'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USE DEVARCGISSDETEST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE USER sde FOR LOGIN sde;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE SCHEMA sde AUTHORIZATION sde;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ALTER USER sde WITH DEFAULT_SCHEMA = sde;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GRANT CREATE TABLE, CREATE PROCEDURE, CREATE FUNCTION, CREATE VIEW TO sde;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE FULLTEXT CATALOG SDE_DEFAULT_CAT AS DEFAULT AUTHORIZATION sde;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 22:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724146#M41015</guid>
      <dc:creator>MarkWilloughby</dc:creator>
      <dc:date>2014-01-22T22:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Preparing scripted setup of ArcSDE in SQL Server 2012</title>
      <link>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724147#M41016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello:Also when setting up a connection file to use with &lt;STRONG&gt;Enable Enterprise Geodatabase&lt;/STRONG&gt; tool is it best to use sa or sde for username? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't answer your first question regarding the script, but the answer to your second question about the user account is to use the SDE user.&amp;nbsp; Do not use the 'sa' account for things like this; it's just bad practice since the account is too powerful.&amp;nbsp; The Create Enterprise Geodatabase tool will actually create the SDE user if you pick the SDE_SCHEMA (which you said you are doing), so use that same SDE user when running the Enable Enterprise Geodatabase tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 00:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724147#M41016</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2014-01-23T00:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preparing scripted setup of ArcSDE in SQL Server 2012</title>
      <link>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724148#M41017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Scripting database and geodatabase creation in SQL Server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Link for 10.1: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002q000000rp000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//002q000000rp000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Link for 10.2/10.2.1: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002q000000rp000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//002q000000rp000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As William already specified, you need to use the "SDE" user to create an SDE-Schema geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the "SA" user is used, a DBO-Schema geodatabase would be created.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 15:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724148#M41017</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2014-01-23T15:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Preparing scripted setup of ArcSDE in SQL Server 2012</title>
      <link>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724149#M41018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip re: using the sde account when creating the geodatabase content with the Enable Enterprise Geodatabase tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still looking for feedback on the SQL script I'm using to create the sde login, user and schema.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/preparing-scripted-setup-of-arcsde-in-sql-server/m-p/724149#M41018</guid>
      <dc:creator>MarkWilloughby</dc:creator>
      <dc:date>2014-01-23T19:19:37Z</dc:date>
    </item>
  </channel>
</rss>

