HowTo:  Create an SDE schema geodatabase using the Enable Enterprise Geodatabase geoprocessing tool in SQL Server

相关信息
Article ID: 42212
Software:
ArcSDE 10.1, 10.2
ArcGIS for Desktop Advanced 10.1, 10.2, 10.2.1
ArcGIS for Desktop Standard 10.1, 10.2, 10.2.1
Platforms:
Windows Server 2008, Server 2012, Server 2008 R2, Server 2012 R2

问题描述
Using the Enable Enterprise Geodatabase Tool from ArcToolbox can take an existing database and create the geodatabase system tables, stored procedures, functions, and types within. This process allows the conversion of an enterprise database created in Microsoft SQL Server to an enterprise geodatabase for use with ArcGIS.

If there is a need to have the schema owned by the SDE user, the instructions provided describe the steps to set this up by setting up the SDE login/user within the database with proper permissions and then making a connection to the database as the specific SDE user to implement the Enable Enterprise Geodatabase tool.


The SQL Server DBMS client for the ArcGIS client must be installed to perform this process. The SQL Server DBMS client can be downloaded from the Esri Customer Care Portal.

已邀请:

EsriSupport

赞同来自:

解决方案
1.Use an existing database or create a new database in SQL Server Management Studio.
2.Create an SDE login (if not already in the instance) and map it to the database created in Step 1 to create the SDE user within the database.    
  
When adding/mapping the login to the database as a user ensure that the username and default schema match.

 
If the SDE login is not already created in the instance, be sure to add the Server Role of processadmin to the SDE login.
3.Open the properties for the database and explore the permissions page to grant the proper permissions for the SDE user. 
 a. Create Function 
 b. Create Procedure 
 c. Create Table 
 d. Create View 
 e. View Database State 
 f. View Definition 

Use the script below to grant permissions to the SDE user for this newly-created database in SQL Server Management Studio: use [SQL Server Database Name] GO
use [SQL Server Database Name]
GO
GRANT CREATE FUNCTION TO [sde]
GO
use [SQL Server Database Name]
GO
GRANT CREATE PROCEDURE TO [sde]
GO
use [SQL Server Database Name]
GO
GRANT CREATE TABLE TO [sde]
GO
use [SQL Server Database Name]
GO
GRANT CREATE VIEW TO [sde]
GO
use [SQL Server Database Name]
GO
GRANT VIEW DATABASE STATE TO [sde]
GO
use [SQL Server Database Name]
GO
GRANT VIEW DEFINITION TO [sde]
GO
4.Make a connection in ArcCatalog to the newly created SQL Server database as the SDE user.

5.Navigate to the Enable Enterprise Geodatabase geoprocessing tool and use the SDE connection and use the proper authorization file.

When connecting to a non-geodatabase, this tool can be accessed by right-clicking the database connection > Enable Geodatabase.

6.All related the system tables, stored procedures, functions, and types are now owned by the SDE schema. 


其它相关参考
  1. Enable Enterprise Geodatabase (Data Management)
  2. User privileges for geodatabases in SQL Server


创建及修改时间
Created: 2/6/2014

Last Modified: 4/24/2014
原文链接
http://support.esri.com/en/kno ... 42212

要回复问题请先登录注册