Create a Project in a SQL Server database

To create a project on a repository in SQL Server 2000, 2005, 2008 or 2012, or SQL Server Express 2005 or 2008, work through the following stages:

Stage 1: Create an empty database repository and set up the data tables
Stage 2: Perform a project integrity check on the .eap file you are using as a base (optional, but recommended)
Stage 3: Transfer the data
Stage 4: Connect to the repository to open the project
 

Prerequisites

Install SQL Server and MDAC 2.6 or higher, and obtain access permissions to create a new database
 

Create a SQL Server Repository

Step

Action

See also

1

Create an empty SQL Server database.

 

 

 

Create a SQL Server Repository

Registered User's Scripts page

Trial User's Scripts Page

2

Using a tool such as the SQL Enterprise Manager, load the SQLServer_EASchema.sql file from the Sparx Systems website.

 

3

Run the script to create all required data tables in the repository.

 

Perform a Project Integrity Check

Step

Action

See also

1

In Enterprise Architect, open the .eap project or template from which you are creating the project on the repository.

 

 

2

Select and run Tools | Data Management | Project Integrity Check.

This ensures your project data is 'clean' before being copied to the repository.

 

Project Integrity Check

Transfer the project data to the repository

Step

Action

See also

1

Open Enterprise Architect.

(If the Open Project screen displays, click on the Cancel button to open with no project loaded.)

 

 

2

Select the Tools | Data Management | Project Transfer menu option.

The Project Transfer dialog displays.

 

 

3

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

 

 

4

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

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

 

 

Remove Replication

5

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

The Datalink Properties dialog displays.

 

 

6

Select Microsoft OLE DB Provider for SQL Server from the list.

Click on the Next button.

 

 

7

On the Data Source Details page of the Datalink Properties dialog, type in the server name, database name and any security details required.

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

 

 

8

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

 

 

9

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

 

 

10

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

 

Connect to a SQL Server Data Repository

Learn more