Create Database Connection (Data Management)

This ArcGIS 2.9 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Summary

Creates a file that ArcGIS uses to connect to a database or an enterprise geodatabase.

Usage

  • After valid connection information is entered to establish a connection on the tool dialog box, the tool will connect to the database to determine if it contains the geodatabase schema.

    • For databases, all the parameters in the Geodatabase Connection Properties section of the tool dialog box are ignored.
    • For geodatabases, the tool automatically populates the Geodatabase Connection Properties section. The Schema parameter is set with the sde schema (for Oracle user schema geodatabases only), the default Version Type for the geodatabase, and the Default version.
  • Connections from ArcGIS to Altibase and Netezza are no longer supported.

Parameters

LabelExplanationData Type
Connection File Location

The folder path where the database connection file (.sde) will be stored.

Folder
Connection File Name

The name of the database connection file. The output file will have the extension .sde.

String
Database Platform

Specifies the database management system platform to which the connection will be made. The following are valid options:

  • DamengConnect to Dameng.
  • Db2Connect to IBM Db2 for Linux, UNIX, or Windows.
  • OracleConnect to Oracle, Amazon Relational Database Service (RDS) for Oracle, or Autonomous Transaction Processing database in Oracle Cloud.
  • PostgreSQLConnect to PostgreSQL, Amazon Aurora (PostgreSQL-compatible edition), Amazon Relational Database Service (RDS) for PostgreSQL, or Microsoft Azure Database for PostgreSQL.
  • TeradataConnect to Teradata Data Warehouse Appliance.
  • SAP HANAConnect to SAP HANA or SAP HANA Cloud.
  • SQL ServerConnect to Microsoft SQL Server, Microsoft Azure SQL Database, Microsoft Azure SQL Managed Instance, or Amazon Relational Database Service (RDS) for SQL Server.
String
Instance

The database server or instance to which the connection will be made.

The value you choose from the Database Platform drop-down list indicates the type of database to which you want to connect. The information you provide for the Instance parameter varies, depending on the connection type you choose.

See below for information about what to provide for each database platform.

  • Dameng—The name of the server where the Dameng database is installed
  • Db2—The name of the cataloged Db2 database
  • Oracle—Either the TNS name or the Oracle Easy Connection string to connect to the Oracle database or database service
  • PostgreSQL—The name of the server where PostgreSQL is installed or the name of the PostgreSQL database service instance
  • SAP HANA—The Open Database Connectivity (ODBC) data source name for the SAP HANA database or database service
  • SQL Server—The name of the SQL Server database instance or the name of the database service instance.
  • Teradata—The ODBC data source name for the Teradata database
String
Database Authentication
(Optional)

Specifies the type of authentication that will be used.

  • Database authenticationDatabase authentication will be used. An internal database user name and a password will be used to connect to the database. You aren't required to type your user name and password to create a connection; however, if you don't, you will be prompted to enter them when a connection is established.
    Note:

    If the connection file you are creating will provide ArcGIS services with access to the database or geodatabase, or if you want to use the Catalog search to locate data accessed through this connection file, you must type a user name and password.

  • Operating system authenticationOperating system authentication will be used. You do not need to type a user name and password. The connection will be made with the user name and password that were used to log in to the operating system. If the login used for the operating system is not a valid geodatabase login, the connection will fail.
Boolean
Username
(Optional)

The database user name that will be used for database authentication.

String
Password
(Optional)

The database user password that will be used for database authentication.

Encrypted String
Save username and password
(Optional)

Specifies whether the user name and password will be saved.

  • Checked—The user name and password will be saved in the connection file. This is the default. If the connection file you are creating will provide ArcGIS services with access to the geodatabase, you must save the user name and password.
  • Unchecked—The user name and password will not be saved in the connection file. Every time you attempt to connect using the file, you will be prompted for the user name and password.
Boolean
Database
(Optional)

The name of the database to which the connection will be made. This parameter only applies to PostgreSQL and SQL Server platforms.

String
Schema (Oracle user schema geodatabases only)
(Optional)

The user schema geodatabase to which the connection will be made. The tool will determine if it is connecting to an Oracle database that contains a user–schema geodatabase. If the Oracle database contains a user schema, this option is active; otherwise, it remains inactive. The default option for this parameter is to use the sde schema geodatabase.

String
Version Type
(Optional)

Specifies the type of version to which the connection will be made. This parameter only applies when connecting to a geodatabase.

Note:

If Historical is selected and a name is not provided, the default transactional version is used. If Point in time is selected and a date is not provided in the Date and Time parameter, the default transactional version is used.

  • TransactionalConnect to a transactional version. If Transactional is selected, the The following version will be used parameter will be populated with a list of transactional versions, and the Date and Time parameter will be inactive. This is the default.
  • HistoricalConnect to an historical marker. If Historical is selected, the The following version will be used parameter will be populated with a list of historical markers, and the Date and Time parameter will be inactive.
  • Point in timeConnect to a specific point in time. If Point in time is selected, the The following version will be used parameter will be inactive, and the Date and Time parameter will become active.
  • BranchConnect to the default branch version.
String
The following version will be used
(Optional)

The geodatabase transactional version or historical marker to which the connect will be made. The default option uses the default transactional version.

If you choose a branch version type, the connection is always to the default branch version.

String
Date and Time
(Optional)

The value representing the date and time that will be used to connect to the database. This option is used with archive-enabled data. Use the time picker to choose the appropriate date.

If manually entering a date, the following formats can be used:

  • 6/9/2011 4:20:15 PM
  • 6/9/2011 16:20:15
  • 6/9/2011
  • 4:20:15 PM
  • 16:20:15

Note:

  • If a time is entered without a date, the default date of December 30, 1899, is used.
  • If a date is entered without a time, the default time of 12:00:00 AM will be used.

Date

Derived Output

LabelExplanationData Type
Output Workspace

The output database connection file (.sde).

workspace

Environments

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics