ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Creating the administrator users and connection in SQL Server for the BIS workspace

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

Creating the administrator geodatabase users

You can choose to add users to an enterprise geodatabase in SQL Server through Microsoft SQL Server Management Studio. The geodatabase users are underlying enterprise database users and store the BIS feature classes and tables. You need to grant the appropriate permissions.

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

For BIS 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 BIS feature classes and tables, and grant the appropriate permissions.

La operación de copiar y pegar los ejemplos puede dar lugar a errores de sintaxis.

  1. Create user and schema.
    USE BISDB
    GO
    EXEC sp_addlogin N'bis', 'bis', @logindb, @loginlang
    GO 
    CREATE USER [bis] FOR LOGIN [bis]
    GO
    CREATE SCHEMA [bis] AUTHORIZATION [bis]
    GO
    ALTER USER [bis] WITH DEFAULT_SCHEMA=[bis]
    GO
    
  2. Grant privileges.
    USE BISDB
    GO
    EXEC sp_droprolemember 'gis_data_creator', 'bis'
    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', 'bis'
    GO
    
  3. Verify roles.
    EXEC sp_helprolemember 'gis_data_creator'
    GO
    
  4. 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
    
  5. 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) = 'bis'
    
  6. Associate Login bis with User bis.
    USE BISDB
    GO
    EXEC sp_change_users_login 'update_one','bis','bis'
    GO
    EXEC sp_helpuser 'bis'
    

Creating the administrator database connection

You need to create an administrator database connection when the BIS workspace is stored in an enterprise geodatabase. Create a database connection in ArcCatalog with the BIS user; this will be the BIS workspace location.

For more information, see Database connections in ArcMap.

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal