ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • 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 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

Create a database view in ArcGIS Desktop

Available with Standard or Advanced license.

  • Create a view from a database connection in ArcMap
  • Use the Create Database View geoprocessing tool

You can define a database view on tables in your database from the database connection context menu or using the Create Database View geoprocessing tool.

If you include a spatial column in the view definition, the spatial column must use a SQL spatial data type. You cannot include a spatial column that is a binary geometry data type. Views created in an Oracle database that include an ST_Geometry column in the view definition require you to configure the Oracle extproc.

Be aware that no matter which method you use, the view is a database view; even if it is created in an enterprise geodatabase, it is not a geodatabase object until you register it with the geodatabase.

Create a view from a database connection in ArcMap

  1. Start ArcCatalog or ArcMap.
  2. Connect to the database in which you want to create a view.

    Be sure you connect as a user that has the database permissions required to create views. Check your database management system documentation for information on these permissions.

  3. Right-click the database connection, point to New, and click View.

    The Create New View dialog box appears.

  4. Type a name for your view in the View Name text box.

    The view name cannot contain spaces or nonalphanumeric characters and cannot exceed the maximum characters allowed by the database management system for view names.

  5. Type the SQL query to define your view in the View Definition text box.
  6. Click OK to create the view.

Your newly defined view appears in the list of data under the database connection.

To allow other people to access the view, grant privileges on the view.

Use the Create Database View geoprocessing tool

You can run the tool or call it from a Python command prompt or script. The following steps explain how to run the tool from ArcMap.

  1. Start ArcMap.
  2. Search for or browse to the Create Database View tool in the General toolset of the Data Management toolbox and open the tool.
  3. Provide a database connection (.sde) file for the Input Database Connection.

    The file must connect as a user that has the database permissions required to create views. Check your database management system documentation for information on these permissions.

  4. Specify a name for the view in the Output View Name text box.

    The view name cannot contain spaces or nonalphanumeric characters and cannot exceed the maximum characters allowed by the database management system for view names.

  5. Type the SQL query to define your view in the View Definition text box.
  6. Click OK.

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

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