This document is archived and information here might be outdated.  Recommended version.


ISqlWorkspace Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISqlWorkspace Interface
ArcGIS Developer Help

ISqlWorkspace Interface

Query layer workspace interface

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

This interface is used to create query classes and query cursors, and to retrieve information about SQL workspaces.

Members

Name Description
Method CheckDatasetName Returns unique name in the workspace.
Method GetColumns Returns column information for a table.
Method GetQueryDescription Get query properties including spatial based on the first record of the query.
Method GetTables Returns names of all the table.
Method OpenQueryClass Returns a table or a feature class based on a query.
Method OpenQueryCursor Returns a cursor based on a query.

Classes that implement ISqlWorkspace

Classes Description

Remarks

A SQL workspace is a relational database that may or may not be a geodatabase. After creating a workspace with the SqlWorkspaceFactory class (and the IWorkspaceFactory interface), this interface is used to retrieve data in a read-only manner as query classes and query cursors. Query classes can be used much like tables or feature classes from other data sources; through ArcMap, they are exposed as "Query Layers".