Upsize to SQL Server

This topic explains how to upsize your .EAP project or template for use with SQL Server.

The process has the following stages:

  • Stage 1: Perform project integrity check
  • Stage 2: Create an empty database repository
  • Stage 3: Transfer the data

Perform Project Integrity Check:

Step

Action

See also

1

Open the base project or template .eap file

 

2

Select and run Tools | Data Management | Project Integrity Check

This ensures your project data is 'clean' before uploading

Project Integrity Check

Create Database Repository:

Step

Action

See also

1

Install SQL Server

 

2

Create the empty database

Create an SQL Server Repository

3

Using a tool such as the SQL Query Analyser, load the SQLServer_EASchema.sql file

Sparx Systems Website

4

Make sure the new database is the currently active database

 

5

Run the script to create all required data structures

Create an SQL Server Repository

Transfer the Project Data:

Step

Action

See also

1

Open Enterprise Architect

Click on the Cancel button on the Open Project screen 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 upsize to SQL Server

 

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 Connection dialog, type in the server name, database name and security details as required

Click on the OK button

Connect to SQL Server Data Repository

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

 

When the process is complete, you have upsized your model to SQL Server and can now open it from Enterprise Architect.

Notes:

  • When transferring a project you must have db_ddladmin permission in order to execute the SET IDENTITY_INSERT ( table )  {ON | OFF} command