Show Navigation | Hide Navigation
You are here:
Data management with ArcCatalog > Building the Catalog

Adding OLE DB connections

Release 9.3
Last modified May 9, 2012
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Building the Catalog"


Related Topics

About OLE DB connections

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.


How to add OLE DB connections

  1. Double-click Database Connections in the ArcCatalog tree.
  2. Double-click Add OLE DB Connection.
  3. Click the OLE DB provider you want to use to access data.
  4. Click Next or click the Connection tab.
  5. Provide the required connection information. The Connection tab is different for each provider. Most require that you identify the database to which you want to connect and type your user name and password. If you uncheck Allow saving password, you will be prompted for login information when you access the data; this helps maintain the security of your database. Click the Help button for assistance.
  6. Click Test Connection.
  7. Click OK if the connection test was successful.
  8. Type a new name for the connection.
  9. Press Enter.

Tips

  • For general information on how to make an OLE DB connection to an external data source using the Microsoft OLE DB provider for ODBC drivers and an existing file-based ODBC Data Source Name (DSN), see OLE DB connections to a file-based ODBC DSN.
  • For connections to an Oracle database using an existing ODBC DSN, see Using the Microsoft OLE DB provider for ODBC drivers to connect to an Oracle database.
  • To create a connection to a Microsoft Excel file using an ODBC DSN, see Connecting to an Excel file via OLE DB.
  • For connections to a SQL Server database, use the MS OLE DB provider for SQL Server. Further information on what is required to complete the connection is provided in the online Help in the Data Link Properties dialog box; click Next to advance to the Connection tab, then click Help.
  • For other frequently asked questions, please refer to the ArcGIS Resource Center and search for "OLE DB". The Knowledge Base contains many documents that describe some of the issues you may encounter when working with OLE DB providers in ArcGIS.
  • For general information on Microsoft's Universal Data Access Strategy and OLE DB, see Microsoft's documentation.

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.