Adding OLE DB connections |
|
|
Release 9.3
Last modified May 9, 2012 |
Print all topics in : "Building the Catalog" |
Note:
This topic was updated for 9.3.1.
In ArcCatalog, you can use OLE DB providers to retrieve data from a database. ArcCatalog communicates with all OLE DB providers in the same way, with each provider, in turn, communicating with a different database. This standard lets you work with data from any database in the Catalog in the same way. Looking in an OLE DB connection in the Catalog, you'll see a list of tables in the database.
Microsoft's OLE DB providers come with ArcCatalog. They let you access Jet (Microsoft Access), SQL Server, and Oracle databases. Another provider communicates with Open Database Communication (ODBC) drivers. Additional OLE DB providers may be available from other sources. The Connection tab is different for each provider, although they all require similar information (your user name, password, and the database to which you want to connect). Each provider should have a Help topic with specific information on how to create a connection.
ArcGIS incorporates Microsoft Data Access Components (MDAC), which include OLE DB providers and ODBC drivers. These components provide easy access to information maintained in a variety of external data sources, both relational and nonrelational.
OLE DB is a database access application programming interface (API) that builds on ODBC technology; it is based on Microsoft's Component Object Model (COM) development strategy. OLE DB providers handle the exchange of information between the data provider (data source) and the data consumer (any system or application code—for example, ArcCatalog or ArcMap) that requires access to data.
You have access to all the OLE DB providers that are installed as part of the MDAC package on your computer. These include Microsoft's OLE DB providers for Jet, SQL Server, Oracle, and an OLE DB provider for ODBC drivers to access ODBC data sources. For OLE DB connections to PostgreSQL, you need to download and install the drivers for PostgreSQL. These can be accessed through the PostgreSQL site at http://www.postgresql.org/download/. Be sure to install the driver that matches the release of PostgreSQL to which you want to connect.
Data accessed through an OLE DB database connection is read-only in ArcGIS. However, it is possible to edit the data programmatically.
You can create and manage your OLE DB connections in ArcCatalog using the Data Link Properties dialog box (learn how to access the Data Link Properties dialog box).
The following section explains how to make OLE DB connections using some of the more common OLE DB providers.
| Tips |
|