Export Replica Schema (Data Management)

Summary

Creates a replica schema file with the schema of an input one- or two-way replica.

Usage

Syntax

ExportReplicaSchema_management (in_geodatabase, output_replica_schema_file, in_replica)
ParameterExplanationData Type
in_geodatabase

Specifies the replica geodatabase from which to export the replica schema. The geodatabase may be local or remote.

Workspace; GeoDataServer
output_replica_schema_file

Specifies the file in which to export schema.

File
in_replica

The replica from which to export schema.

String

Code Sample

ExportReplicaSchema Example (Python Window)
import arcpy
from arcpy import env
env.worksapce = "C:/Data"
arcpy.ExportReplicaSchema_management("Countries.mdb", "replicaSchema.xml", "MyReplica1")
ExportReplicaSchema Example 2 (stand-alone Python script)
# Name: ExportReplicaSchema_Example2.py
# Description: Exports replica schema from a personal geodatabase with a replica
# Author: ESRI

# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
replica_workspace = "Countries.mdb"
output_file = "replicaSchema.xml"
replica = "MyReplica1"

# Execute ExportReplicaSchema
arcpy.ExportReplicaSchema_management(replica_workspace, output_file, replica)

Environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Yes
ArcInfo: Yes

10/27/2014