Create Database Connection (Data Management Tools)
Summary
Creates a file that ArcGIS uses to connect to a database, a cloud data warehouse, or an enterprise geodatabase.
Usage
After valid connection information is provided on the tool dialog box to establish a connection, 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 parameter category in the Geoprocessing pane will be ignored.
For geodatabases, the tool automatically populates the Geodatabase Connection Properties parameter category. The Schema parameter is set with the sde schema (for Oracle user schema geodatabases only), the default Version Type value for the geodatabase, and the Default version.
If you don't want to save the connection information in the Results window or don't want to store it in the geoprocessing history log files, disable all logging options for geoprocessing history and save the connection file without saving the connection information.
Connections from ArcGIS to Altibase and Netezza are no longer supported.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Connection File Location |
The folder path where the database connection file ( |
Folder |
|
Connection File Name |
The name of the database connection file. The output file will have the |
String |
|
Database Platform |
Specifies the database management system platform to which the connection will be made. The following are valid options:
|
String |
|
Instance/Server (Optional) |
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 or cloud data warehouse to which the connection will be made. The information you provide for the Instance/Server parameter will vary, depending on the database platform type that you choose. See below for information about what to provide for each platform.
|
String |
|
Database Authentication (Optional) |
Specifies the type of authentication that will be used.
|
Boolean |
|
Username (Optional) |
The database username 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 username and password will be saved.
|
Boolean |
|
Database (Optional) |
The name of the database to which the connection will be made. This parameter applies to PostgreSQL, Redshift, Snowflake, and SQL Server platforms. |
String |
|
Schema (Oracle user schema geodatabases only) (Optional) |
User-schema geodatabases are no longer supported. |
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 no name is provided, the default transactional version will be used. If Point in time is selected and no date is provided for the Date and Time parameter, the default transactional version will be used.
|
String |
|
The following version will be used (Optional) |
The geodatabase transactional version or historical marker to which the connection 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 parameter 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:
Note:
|
Date |
|
Advanced Authentication Type (Optional) |
Specifies the advanced authentication type that will be used when connecting to a cloud data warehouse, Microsoft Azure SQL Database, Azure SQL Managed Instance, Elasticsearch, or OpenSearch.
|
String |
|
Project ID (Optional) |
The project ID for the Google BigQuery connection. Public data projects are not supported. |
String |
|
Default Dataset (Optional) |
The default dataset for the Google BigQuery connection. Provide the dataset name only; the fully-qualified dataset name is not supported. The dataset name must contain 32 characters or fewer. Public datasets are not supported. |
String |
|
Refresh Token (Optional) |
The refresh token value. This parameter is only applicable for Google BigQuery connections when the advanced authentication type is user authentication. |
Encrypted String |
|
Key File (Optional) |
The key file value. This parameter is only applicable for Google BigQuery connections when the advanced authentication type is server authentication. |
File |
|
Role (Optional) |
The role value for a cloud data warehouse connection. This parameter is only applicable for connections to Snowflake. |
String |
|
Warehouse (Optional) |
The warehouse value for the connection. This parameter is only applicable for connections to Snowflake. |
String |
|
Advanced Options (Optional) |
The advanced options for the connection. This is optional connection information that is specific to the cloud data warehouse platform (Google BigQuery, Amazon Redshift, or Snowflake) to which you connect. Provide advanced options using |
String |
|
Host URL (Optional) |
The URL to connect to Elasticsearch or OpenSearch. This parameter is only applicable for connections to Elasticsearch or OpenSearch. |
String |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Workspace |
The output database connection file ( |
Workspace |
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes