Import Replica Schema (Data Management)

License Level:BasicStandardAdvanced

Summary

Applies replica schema differences using an input replica geodatabase and XML schema file.

Usage

Syntax

ImportReplicaSchema_management (in_geodatabase, in_source)
ParameterExplanationData Type
in_geodatabase

Specifies the replica geodatabase to which the replica schema will be imported. The geodatabase may be a local geodatabase or a geodata service.

Workspace; GeoDataServer
in_source

Specifies the file which contains the replica schema to import.

File

Code Sample

ImportReplicaSchema Example (Python Window)

The following Python Window script demonstrates how to use the ImportReplicaSchema function in the Python window.

import arcpy
from arcpy import env
env.workspace = "C:/Data"
arcpy.ImportReplicaSchema_management("Countries.mdb", "schemaDifferences.xml")
ImportReplicaSchema Example 2 (stand-alone Python script)

The following Python script demonstrates how to use the ImportReplicaSchema function in a stand-alone Python script.

# Name: ImportReplicaSchema_Example2.py
# Description: Imports a schema changes file into a replica geodatabase (MDB)
# Author: ESRI

# Import system modules
import arcpy
from arcpy import env

# Set workspace
env.workspace = "C:/Data"

# Set local variables
replica_geodatabase = "Countries.mdb"
schema_file = "schemaDifferences.xml"

# Execute ImportReplicaSchema
arcpy.ImportReplicaSchema_management(replica_geodatabase, schema_file)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
5/7/2015