Using the Data Link Properties wizard |
home |
This SQL*XL help page describes how the Data Link Properties wizard can be used to connect from MS Excel to your database. For SQL*XL - or any other program - to connect to your database through ADO you need to specify a connection string. The Data Link Properties wizard helps you to build a connection to your database. Once the connection string is known SQL*XL will save it and reuse it in the future without the need to go through it all again.
The process of setting up a connection to your database is explained in detail below. It contains step by step instructions for the more common database types. |
|
Purpose:
Specify the connection settings to access a database. Choosing the different options in this Data Link Properties
wizard you specify the connection details to the database. Once done SQL*XL will save these details for you in
the Connection History list.
Usage:
Use Data Link Properties wizard (see below).
The wizard contains 4 sections of which you only have to concern yourself with the first two: Provider and Connection
Provider:
In the provider section you see a list of the OLE DB providers through which you can connect to databases. Lists
all OLE DB providers detected on your computer.
A provider is actually nothing more than a driver (in old terminology) but the ODBC provider is the odd one out because it bundles the functionality for all possible ODBC drivers.
From the name of the provider it is usually clear which databases can be accessed through them. Note that for Access databases choose the Microsoft Jet OLE DB Provider. If no provider is available for your database choose the Microsoft OLE DB Provider for ODBC Drivers. Otherwise contact your database vendor to see if an OLE DB provider is available for their database.
Connection:
The contents of the connection section of the Data Link Properties wizard depends on which provider you choose:
What follows is a description of the contents of the Connection section for each of these Providers.
Microsoft OLE DB Provider for Oracle: |
|
Server Name: Allow saving password: Test Connection: |
Microsoft OLE DB Provider for SQL Server: |
|
Server Name: Use Windows NT Security: Use specific Username and password: Select database: Test Connection: |
Microsoft Jet OLE DB Provider: |
|
Database Name: User Name: Test Connection: |
Microsoft OLE DB Provider for ODBC Drivers: |
|
Use Data Source: If you don't have a DSN for your database yet, create one in the ODBC Data Source Administrator window. Use Connection String: Allow saving password: Test Connection: |
Microsoft OLE DB Provider for Indexing Service: |
|
Data Source: Test Connection: |
MS Project 9.0 OLE DB Provider: |
|
Leave all the fields on this screen blank or at their default values. You may blank the initial catalog value. To indicate which *.mpp file to use, go to the "All" tab as shown below |
|
Leave all the settings to their defaults except for Project Name. Select the Project Name entry and click the Edit Value button. Specify the location of your *.mpp file (in my test case the d:\test.mpp file). After you specified the Project Name please go back to the "Connection" tab to use the test connection button. Test Connection: Always test the connection before you continue. |
PostgreSQL OLE DB Provider: |
|
Data Source: Location: Username and password: Test Connection: |
|
Leave all the settings to their defaults except for Project Name. Select the Project Name entry and click the Edit Value button. Specify the location of your *.mpp file (in my test case the d:\test.mpp file). After you specified the Project Name please go back to the "Connection" tab to use the test connection button. Test Connection: Always test the connection before you continue. |
Advantage OLE DB Provider: |
|
Data Source: Username and password: Test Connection: |
Active Directory : OLE DB provider for Directory Services: |
|
Please note: Data Source: Username and password: Test Connection: |
DB2 : IBM OLE DB provider for DB2 Servers: |
|
Data Source: Username and password: Test Connection: |
viksoe.dk OLE DB provider for XML: |
You can obtain a copy of the freeware viksoe.dk OLE DB provider for XML at: http://www.viksoe.dk/code/xmloledb.htm |
|
Data
Source: Location: Username: Test Connection: |
See also: