There are
several different types of geodatabases that can be used with ArcGIS, including personal, file, and enterprise. As we saw in Chapter 8, Querying and Selecting Data, the construction of queries will vary depending upon the type of geodatabase a dataset resides within. Your scripts may or may not know the geodatabase type ahead of time. To make your scripts more robust in the case of queries, you could use the Describe()
function against a workspace to capture this information and construct your query accordingly.
The Workspace
property group provides information about a workspace (such as a folder, personal or file
geodatabase, or enterprise geodatabase). These properties are particularly helpful when obtaining information about an ArcSDE connection. Information that can be obtained through this property group includes the connection information when the workspace is an ArcSDE workspace, domains associated...