ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Import Geodatabase Configuration Keywords

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

The Import Geodatabase Configuration Keywordstool allows you to define data storage parameters for an enterprise geodatabase by importing a file containing configuration keywords, parameters, and values.

Usage

  • This tool only works with enterprise geodatabases.

  • Typically, you will run the Export Geodatabase Configuration Keywords tool first to obtain a file containing the geodatabase's existing configuration keyword and parameter values. Alter this file and import the changes using the Import Geodatabase Configuration Keywords tool.

  • Only the geodatabase administrator can run the Import Geodatabase Configuration Keywords tool.

Syntax

ImportGeodatabaseConfigurationKeywords_management (input_database, in_file)
ParameterExplanationData Type
input_database

The connection file for the enterprise geodatabase into which the configuration file will be imported. You must connect as the geodatabase administrator.

Workspace
in_file

The path to and name of the ASCII text file containing configuration keywords, parameters, and values to be imported.

File

Code sample

ImportConfigKeywords example 1 (Python window)

You can alter and run the following from a Python window to import a text file containing configuration keyword settings.This example connects through the database connection file enterprisegdb.sde to import the file keyword.txt.

import arcpy
ent_gdb = "C:\\gdbs\\enterprisegdb.sde"
input_file = "C:\\temp\\keyword.txt"
arcpy.ImportGeodatabaseConfigurationKeywords_management(ent_gdb,input_file)
ImportConfigKeywords example 2 (stand-alone script)

The following is a stand-alone script you can alter and run to import an altered configuration keyword text file.

# Set the necessary product code
import arceditor
 
# Import arcpy module
import arcpy

# Local variables:
ent_gdb = "C:\\gdbs\\enterprisegdb.sde"
input_file = "C:\\temp\\keyword.txt"

# Process: Import the text file containing configuration keywords
arcpy.ImportGeodatabaseConfigurationKeywords_management(ent_gdb,input_file)

Environments

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Geodatabase Administration toolset
  • Alter configuration keywords

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal