Register with Geodatabase (Data Management)


Registers feature classes, tables, and raster layers that were created outside of the geodatabase with the geodatabase in order for them to fully participate in geodatabase functionality.



RegisterWithGeodatabase_management (in_dataset)
ParameterExplanationData Type

Feature classes, tables, or raster feature classes created outside of the geodatabase are supported.

Raster Layer; Table View

Code Sample

RegisterWithGeodatabase example 1 (Python window)

The following Python window script demonstrates how to use the RegisterWithGeodatabase function in immediate mode.

import arcpy
from arcpy import env
env.workspace = "Database Connections\Connection to gpserver.sde"
RegisterWithGeodatabase example 2 (stand-alone script)

The following stand-alone script is a simple example of how to apply the RegisterWithGeodatabase function in scripting.

# Description: Simple example showing use of RegisterWithGeodatabase tool
# Author: ESRI
# Import system modules
import arcpy

# Set variables
inTable = r"c:\connectionFiles\Connection to esriServer.sde\redlandsStreets"

#Process: Use the CreateArcSDEConnectionFile function
arcpy.RegisterWithGeodatabase_management (inTable)


This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Yes
ArcInfo: Yes