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


SqlWorkspaceFactory CoClass (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesGDB)  

SqlWorkspaceFactory CoClass

Sql workspace factory

Product Availability

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

Description

The SDEWorkspaceFactory.Open method should be used to make connections to all databases and enterprise geodatabases.

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IRemoteDatabaseWorkspaceFactory (esriGeoDatabase) Provides access to members that manage remote database connection information.
ISqlDefaultConnectionInfo (esriGeoDatabase) Provides access to default connection information for a remote database (QueryLayers).
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
IWorkspaceFactory (esriGeoDatabase) Provides access to members that create and open workspaces and supply workspace factory information.
IWorkspaceFactory2 (esriGeoDatabase) Provides access to members that create and open workspaces and supply workspace factory information.

Remarks

The SDEWorkspaceFactory.Open method should be used to make connections to all databases and enterprise geodatabases.