HowTo:  Automate the creation of sdeconnection files for multiple users

相关信息
Article ID: 40667
Software:
ArcGIS - ArcInfo 10
Platforms:
Windows Server 2003, Vista, Server 2008, Windows 7

问题描述
GIS managers and database administrators sometimes desire to create sdeconnections for multiple users in their environment.
已邀请:

易智瑞技术支持

赞同来自:

解决方案
The Python script below provides a way of automating the process of creating sdeconnection files based on different users and passwords.

1. Populate the username parameter based on all user names and passwords that are needed: For example:
folderName = r"C:\sdeconnections"
serverName = "Prod1"
serviceName = "sde:sqlserver:Prod1\sql2008r2"
databaseName = "Replica"
authType = "DATABASE_AUTH"
saveUserInfo = "SAVE_USERNAME"
versionName = "SDE.DEFAULT"
saveVersionInfo = "SAVE_VERSION"
2. Populate the username parameter based on all user names and passwords that are needed: 
   For example, 'sde' is user and 'sde' is password is written as 'sde':'sde'. 

   username = {'sde':'sde', 'gisadmin':'gisadmin','User2':'user2'}
3.


创建及修改时间
Created: 11/16/2012

Last Modified: 11/26/2012
原文链接
http://support.esri.com/en/kno ... 40667

要回复问题请先登录注册