Data Access Tool Overview
The Data Access Tool enables you to define and test connections to remote IBM DB2 relational database servers and IBM host file systems. You can view configured data sources in a scope (folder browser) and results (list item details) pane. You can use an intuitive Data Source Wizard that guides you through the process of defining, test-verifying, and storing connection information.
The following list describes the user interface tasks that you can perform by using the Data Access Tool.
Importing an IBM DB2 Connect configuration
Creating a New Data Source for DB2 or Host Files
Editing a Data Source
Displaying a Connection String
Testing a Connection
Creating Packages for DB2
Running a Sample Query
Opening a File
Cut, copy and paste a Data Source
Change a Password for DB2
To Start the Data Access Tool
Click the Data Access Tool shortcut in the Host Integration Server program folder.
Or click Start, Programs, Host Integration Server, and then click Data Access Tool.
Data Source Browser, Data Source Folder and Data Source Item
The Data Access window is divided into the following three parts:
A scope pane (folder browser) that offers a tree view of data sources, with separate folders for DB2 and Host Files.
A results pane (list item details) that offers a list view of data sources, with common details such as platform and date modified.
A result pane view that displays either the output of a command or current connection string.
Menu commands
Commands can be accessed through the main menu and context-sensitive menu, which appears when you right-click items displayed in the browser or details panes. For example, when you right-click a data source item, you can view, edit, test, delete, or rename that data source item.. In addition, the F5 key updates the tree view, the Delete key deletes the currently selected item, and the F1 key opens the online Help.
Creating a Data Source
To launch the Data Source Wizard, click New Data Source from the File or context menu.
In the Data Access Tool window, click the File menu.
Click NewData Source. The Data Source Wizard appears.
Opening a Data Source
You can use the Open Data Source command on the File menu) to select a Universal Data Link (*.udl) file using the Windows File Open dialog box. This command opens the data source for editing within the Data Source Wizard.
In the Data Access Tool window, click the File menu.
Click Open Data Source. The File Open dialog box appears.
Find the data source that you want, and then click Open. The Data Source Wizard appears.
Importing a Data Source
You can use the Import DB2 Connect File command (File menu) to import a configuration defined for use with IBM DB2 Connect.
In the Data Source Browser, click the File menu.
Click Import, and then select the file that you want.
Click file, and the click Open to view item in Data Source Wizard. The Data Source Wizard appears.
For more information about IBM DB2 Connect files, see the IBM DB2 Connect documentation.
Editing a Data Source
You can use the Edit Data Source command from the Action or context menu to select a Universal Data Link (*.udl) file. This command opens the data source for editing in the Data Source Wizard.
In the Data Source Browser window, click the Actions menu.
Click Edit Data Source. The Data Source Wizard appears.
Testing a Connection
The Test Connection command on the Action or context menu enables you to verify the data source, and to display information such as the host platform and version.
Successfully connected to data source 'DB2DSN1'.
Server class: DB2/z/OS
Server version: 09.01.0005
If you did not persist the user name and password into the connection configuration, an Authentication dialog box will appear, prompting you to enter a valid user name and password.
Running a Sample Query
You can use the Sample Query command on the Action and context menu to execute a sample query against the remote data source. The sample query retrieves a list of tables from the system catalog by using the default schema property configured in the data source.
In the Data Source Browser window, select the data source and click the Actions menu.
Click Sample Query. The Output window and Grid window display the results of the sample query
Successfully retrieved 1000 rows from data source 'DB2DSN1'.
Creating Packages
You can use the Create Packages command on the Actions and context menu to create packages on a remote DB2 relational database server.
In the Data Source Browser window, select the data source and then click the Actions menu.
Click Create Packages. The Output window displays the results of the sample query.
If you did not persist the user name and password into the connection configuration, an Authentication dialog box appears, prompting you to enter a valid user name and password.
Displaying a Connection String
When you select a data source in the Data Source Browser, the Output pane displays the Connection String dialog box. You can copy the connection string from the dialog box and paste it into other applications. You can use this technique in SQL Server Management Studio to define a Linked Server for use with the Query Processor.
Change Password
You can replace your current password using Change Password command on the Actions and context menu to access the DB2 password change management (PCM) function.
In the Data Source Browser window, select the data source, and then click the Actions menu.
Click Change Password. The Authentication dialog appears.
Enter the current credentials in the User name and Password text boxes.
Enter the new password in both the New password and Confirm password text boxes. The Output window displays the results of the Change Password command.
Successfully changed the password on data source 'DB2DSN1'.
Locate
The Locate command on the context menu enables you to navigate to a Universal Data Link (*.udl) file using the Windows Explorer dialog box.
Options
You can use the Options dialog on the View menu to specify the directory that the Data Access Tool uses to view, edit and save Universal Data Link (*.udl) files.
Help
You can use the Help command on the context menu and Dynamic Help on the Help menu to load the product documentation to learn more about using the Data Access Tool.
Other Tasks
In addition to the tasks described in the previous topics, you can also use the Edit, View and Help menus to perform the actions described in the following table.
Menu | Action |
---|---|
Edit | Undo, Cut, Copy, or Paste strings, and to Delete or Rename data sources. |
View | Refresh the browser or view the Options dialog box. |
Help | Access context-sensitive dynamic help, HIS DevCenter (MSDN), HIS TechCenter (TechNet), HIS Forum, HIS Feedback (Connect), and About (version and license). |