Creating the ArcSDE product library users and connections (Production Mapping)

Creating the ArcSDE user

The prodlib user created previously is a data owner. Anybody connecting as prodlib can delete the product library tables or make any schema changes. To protect the product library repository, an editor user can be created to access the product library. The editor user will not be able to create a new class in the product library, which only the data owner prodlib can do, but all the other functionality is available.

The examples below shows how to create an ArcSDE user to access the product library.

注注:

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

USE master
GO
EXEC sp_addlogin N'prodlibuser', 'prodlibuser', @logindb, @loginlang
GO

Create user

--use prodlibdb database
USE [prodlibdb]
GO
CREATE USER [prodlibuser] FOR LOGIN [prodlibuser]
GO

Grant privileges

--use prodlibdb database
USE [prodlibdb]
GO
EXEC sp_addrolemember N'ckb_users', N'prodlibuser'
GO

Verify user permissions

--use prodlibdb database
USE [prodlibdb]
GO
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) = 'prodlibuser' 
GO

Creating database connections for product library users

Database connections need to be created for the other product library users. Create a database connection in ArcCatalog with the PRODLIBUSER user; this will be the product library ArcSDE connection.

Learn more about database connections in ArcGIS for Desktop

注注:

You can create a login for each user in the product library database and, if using database authentication, type the user name of the product library user for whom you want to create a database connection.

4/27/2014