ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Creating the administrator users and connection in SQL Server for the Production Mapping workspace

获得 Production Mapping 许可后可用。

  • Creating the administrator geodatabase users
  • Creating the administrator database connection

Creating the administrator geodatabase users

You can choose to add users to a SQL Server 中的地理数据库 through Microsoft SQL Server Management Studio. The geodatabase users are underlying enterprise database users and store the Production Mapping feature classes and tables. You need to grant the appropriate permissions.

For more information, see Add logins and users to SQL Server.

For ArcGIS Production Mapping workspace administrators, the following is suggested:

User typeRoleSQL Server permissions

Data Creator

CONNECT

  • CREATE TABLE
  • CREATE VIEW
  • CREATE PROCEDURE

Administrator permissions

The following scripts can be used in Microsoft SQL Server Management Studio to create a new database user to store the Production Mapping feature classes and tables, and grant the appropriate permissions:

注:

对示例进行复制和粘贴可能会导致语法错误。

Create the user and schema.

USE PMDB
GO
EXEC sp_addlogin N'pm', 'pm', @logindb, @loginlang
GO 
CREATE USER [pm] FOR LOGIN [pm]
GO
CREATE SCHEMA [pm] AUTHORIZATION [pm]
GO
ALTER USER [pm] WITH DEFAULT_SCHEMA=[pm]
GO

Grant privileges.

USE PMDB
GO
EXEC sp_droprolemember 'gis_data_creator', 'pm'
GO
EXEC sp_droprole 'gis_data_creator'
GO
CREATE ROLE gis_data_creator AUTHORIZATION dbo
GO
GRANT CREATE TABLE TO gis_data_creator
GO
GRANT CREATE PROCEDURE TO gis_data_creator
GO
GRANT CREATE VIEW TO gis_data_creator
GO
EXEC sp_addrolemember 'gis_data_creator', 'pm'
GO

Verify roles.

EXEC sp_helprolemember 'gis_data_creator'
GO

Verify role permissions.

select dp.NAME AS principal_name,
 dp.type_desc AS principal_type_desc,
 o.NAME AS object_name,
 p.permission_name,
 p.state_desc AS permission_state_desc 
 from sys.database_permissions p
 left OUTER JOIN sys.all_objects o
 on p.major_id = o.OBJECT_ID
 inner JOIN sys.database_principals dp
 on p.grantee_principal_id = dp.principal_id
 where dp.NAME = 'gis_data_creator'
GO

Verify user permissions.

select USER_NAME(p.grantee_principal_id) AS principal_name,
 dp.type_desc AS principal_type_desc,
 p.class_desc,
 OBJECT_NAME(p.major_id) AS object_name,
 p.permission_name,
 p.state_desc AS permission_state_desc 
from sys.database_permissions p
inner JOIN sys.database_principals dp
on p.grantee_principal_id = dp.principal_id
where USER_NAME(p.grantee_principal_id) = 'pm'

Associate Login pm with User pm.

USE PMDB
GO
EXEC sp_change_users_login 'update_one','pm','pm'
GO
EXEC sp_helpuser 'pm'

Creating the administrator database connection

You need to create an administrator database connection when the Production Mapping workspace is stored in an 企业级地理数据库. Create a database connection in ArcCatalog with the PM user; this will be the Production Mapping workspace location.

For more information, see Database connections in ArcMap.

相关主题

  • ArcMap 中的数据库连接

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明