ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data Namespace / Database Class
Members

In This Topic
    Database Class
    In This Topic
    Represents the gateway to connect to a relational database, which may or may not be a geodatabase (please see remarks). Given a specific QueryDescription object, the Database data store can be used to open a single database table, or a query layer that is created from one or more database tables.
    Object Model
    Database ClassConnector ClassTableDefinition ClassQueryDescription ClassSQLSyntax ClassTable Class
    Syntax
    public sealed class Database : Datastore, System.IDisposable  
    Public NotInheritable Class Database 
       Inherits Datastore
       Implements System.IDisposable 
    Remarks
    Although the Database data store can be used to access a geodatabase, this practice is not recommended. Instead, Geodatabase should be used instead. The main reason is that internally, the implementation of a Geodatabase table is different from that of a Database. There are certain operations in this class that require the table to be originally opened from a Database. If this precondition is not met, there will be a runtime exception (GetQueryDescription(Table)).
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CoreObjectsBase
          ArcGIS.Core.Data.Datastore
             ArcGIS.Core.Data.Database

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also