ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / Database Class / GetTableNames Method

In This Topic
    GetTableNames Method (Database)
    In This Topic
    Gets the fully qualified name of all the tables that exist in the currently opened database. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public IReadOnlyList<string> GetTableNames()
    Public Function GetTableNames() As IReadOnlyList(Of String)

    Return Value

    A IReadOnlyList of fully qualified table names.
    Exceptions
    ExceptionDescription
    A database-related exception has occurred.
    Remarks
    Depending on the database platform, each of the returned fully qualified name consists of either "databaseName.ownerName.tableName" (e.g., SQL Server) or "ownerName.tableName" (e.g., Oracle).
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also