Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Create a Project in a SQL Server Database

To create a project on a repository in SQL Server 2005 and above, or SQL Server Express 2005 and above, work through these stages:

  • Stage 1: Create an empty database repository and set up the data tables
  • Stage 2: Perform a project integrity check on the project 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


  • A machine with SQL Server installed and running
  • MDAC 2.6 or higher on the client machine
  • Permissions to create databases on SQL Server
  • ALTER permission on the t_image table in Enterprise Architect, to be able to import model images

Create a SQL Server Repository



See also


Create a new empty database.

Create a SQL Server Repository Registered User's Scripts page Trial User's Scripts Page


Load the EASchema_1220_SQLServer.sql file from the Sparx Systems website into your SQL management console of choice (such as Microsoft SQL Server Management Studio).


Run the script to create the required database schema.

Perform a Project Integrity Check



See also


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


Select the 'Configure > Model > Check Integrity > Project Integrity' ribbon option, and execute the check.

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

Project Integrity Check

Transfer the project data to the repository



See also


Open Enterprise Architect.

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


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

The 'Project Transfer' dialog displays.


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


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


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

The 'Datalink Properties' dialog displays.


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

Click on the Next button.


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.


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


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


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