ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Connecting to a database from the query layer interface in ArcMap

The first step in creating a query layer in ArcGIS is to make a connection to the database you want to query. You can do this from the Catalog tree, as explained in Database connections in ArcGIS Desktop. Alternatively, you can connect from the query layer interface in ArcMap, as described below:

  1. In ArcMap, click File > Add Data > Add Query Layer.

    The New Query Layer dialog box opens.

  2. A connection to the database must be established before building queries on the New Query Layer dialog box.
  3. Click Connections.

    The Manage Connection(s) dialog box opens. From here, you can choose existing database connections, create new connections, and edit or delete existing connections.

  4. Choose an existing connection or create a connection to a database.
    • To create a new database connection, click New. The Database Connection dialog box opens. Provide connection information as described in Database connections in ArcGIS Desktop. When the new connection is added to the Existing Connection(s) list, type a descriptive name for the connection and click OK.
    • To use an existing connection, choose it from the Existing Connection(s) list and click OK.

You are now connected to the database you chose, and the tables that can be used in your query layer appear in the List of Tables. You are ready to create a query layer.

Related topics

  • Creating a query layer

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal