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


SqlWorkspaceFactory Class (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Classes > S > SqlWorkspaceFactory Class
ArcGIS Developer Help

SqlWorkspaceFactoryClass Class

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 (esriSystem)
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.