ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

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 for 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 for 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
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal