Import a Data Access Builder Session

You can import a .dax file that contains mappings from another Data Access Builder session into a Data Access part in the IDE. The generated files from the mappings are not part of this import process, but can be generated after you import the session. You can use the import function to migrate Data Access session files from previous versions of VisualAge C++ and VisualAge for Java. It is also useful for sharing work among team members; a mapping can be exported by one team member and distributed to others by network or floppy disk. Team members then import the session into their own workspaces.

To import the session into a Data Access part for the target, do the following steps:

  1. Create a new Data Access Part for the target. This launches the Data Access Builder SmartGuide.
  2. On the first page of the SmartGuide, select the option to import a .dax file.
  3. On the following page, enter the path and file name for the desired .dax file.
  4. When you exit the SmartGuide, the Data Access Part reflects the addition of the mapping.
  5. To customize the mapping, click Edit Part. Data Access Builder starts and the mapping is displayed in the main window. From here you can customize the mapping and generate classes.
  6. In the Data Access Builder main window, select Save from the File menu. This will generate the .vbe and .vbf files needed by the Data Access Part.

A target may only have one Data Access Builder session associated with it. If the current target already has a Data Access Builder part, and you want to import a session that will replace the current part, then do the following steps:

  1. Select the current Data Access part in the Data Access Launch view. Click Edit Part. This will launch Data Access Builder with the mapping information in the current part.
  2. Start the SmartGuide by selecting Map schema from the File menu.
  3. On the first page of the SmartGuide, select the option to import a .dax file.
  4. On the following page, enter the path and file name for the desired .dax file.
  5. When you exit the SmartGuide, the previous Data Access part is overwritten with the new part information.
  6. To customize the mapping, click Edit Part. Data Access Builder starts and the mapping is displayed in the main window. From here you can customize the mapping and generate classes.
  7. In the Data Access Builder main window, select Save from the File menu. This will generate the .vbe and .vbf files needed by the Data Access Part.


Export a Data Access Builder Session
Save a Data Access Builder Session


Migration Considerations