Prev Next

Create a Project in a Sybase ASA/SQL Anywhere Database

To create a project in a repository on Sybase Adaptive Server Anywhere 8 or 9, or SQL Anywhere 10, 11 or 12, you work through these stages:

  • Stage 1: Create an empty database repository
  • Stage 2: Set up the ASA ODBC Driver
  • Stage 3: Set up initial data

Prerequisites

  • A machine with Adaptive Server Anywhere installed and running
  • Install SQL Anywhere Studio, this also installs the ASA ODBC driver

1. Create Database Repository

Step

Action

See also

1.1

Create a new empty database.

Create an Adaptive Server Anywhere Repository

1.2

Open your SQL management console of choice (such as Sybase Central) and connect to the new database.

1.3

Load the EASchema_1220_ SybaseASA.sql file from the Sparx Systems website.

1.4

Run the EASchema_1220_ SybaseASA.sql to create the required database schema.

2. Set up the ODBC DSN

Step

Action

See also

2.1

Create a suitable ODBC Data Source using the Sybase Adaptive Server Anywhere ODBC driver to the new database.

Set up an ASA ODBC Driver

3. Set up Initial Data

Enterprise Architect repositories requires a basic amount of reference data to function correctly.  For Sybase ASA based models this can be achieved by transferring the contents of an existing model into the new database.

Step

Action

See also

3.1

In Enterprise Architect, open the existing repository and select 'Configure > Model > Integrity > Project Integrity' in the ribbon.

3.2

Ensure that the Action is set to 'Report Only' and that all items in 'Checks to Run' are enabled, then click the Go button.

Check Project Data Integrity

3.3

If Enterprise Architect detects that the existing model contains integrity issues then these will be listed, these should be corrected before continuing with the Project Transfer.

3.4

With Enterprise Architect open, ensure that it there is no Project loaded, by selecting 'Close Project' from the  Project list button.

3.5

Select the 'Configure > Model > Transfer > Project Transfer' ribbon option.

The 'Project Transfer' dialog displays.

3.6

In the 'Transfer Type' panel, select '.EAP to DBMS'.

3.7

In the 'Source Project' field, type the name of the project file to copy to the repository.

If the .EAP file has Replication enabled, this must be removed before performing the transfer.

Remove Replication

3.8

At the right of the 'Target Project' field, click on the Browse. button.

The 'Datalink Properties' dialog displays.

3.9

Select 'Microsoft OLE DB Provider for ODBC Drivers' from the list.

Click on the Next button.

3.10

In the 'Use Data source name' field, click on the drop-down arrow and select the ODBC Data Source you configured to point to your new database.

Click on the OK button. The 'Project Transfer' dialog redisplays.

Set up an ASA ODBC Driver

3.11

If required, select the 'Logfile' checkbox and type a path and filename for the data transfer log file.

3.12

Click on the Transfer button to begin the data transfer process.

3.13

When the process is complete, you have created a project on an ASA database and can now connect to it and open it from Enterprise Architect.

Connect to an ASA Data Repository

Learn more