DataLink

Description

Specifies that you want to create a file or use an existing file containing your connection information to connect to your data source.

NoteWhen to specify DataLink You must specify the DataLink parameter before connecting to the database.

Applies to

Syntax

DataLink = 'file_name'

Default

None

Usage

The Data Link option allows you to access Microsoft’s Data Link API. The Data Link API allows you to define a file or use an existing file that contains your OLE DB connection information. A Data Link file is identified with the suffix .udl.

To launch the API, double-click on Manage Data Links under OLE DB Utilities in the Installed Database Interfaces list or select the File Name check box on the Connection tab in the Database Profile Setup dialog box and double-click on the button next to the File Name box.

For more information on using the Data Link API, see Microsoft’s Universal Data Access Web site.

When you use a Data Link file with an AdoTransaction object in DataWindow .NET, set the value in the ConnectString parameter of the Connection object. For more information, see “Specifying parameters for ADO.NET and AdoTransaction”.

NoteUsing a Data Link file versus setting the database parameters If you use a Data Link file to connect to your data source, all other settings you make in the Database Profile Setup dialog box are ignored.

Examples

Example 1

To use the file oledb.udl to connect to an OLE DB data provider: