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)
Parameter | Explanation | Data 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
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes