SQL Server Repository

Note:

This feature is available in the Corporate, Business and Software Engineering, System Engineering and Ultimate editions.

Before creating a SQL Server data repository, you must have SQL Server and MDAC 2.6 or higher installed, and access permission to create a new database. Please note that setting up SQL Server and the issues involved are beyond the scope of this user guide. Consult your program's documentation for a guide to this.

Sparx Systems provide SQL scripts to create the required tables; how you create the database and execute that script are up to you.

Create a SQL Server Repository

SQL Server repositories are created without any data, so you must perform a project data transfer in Enterprise Architect to copy a suitable starter project. If you are starting from scratch, EABase.EAP is a good starting point. If you are using an existing .EAP model, you can upsize it.

To use SQL Enterprise Manager to create a SQL Server repository, follow the steps below:

  1. In SQL Enterprise Manager, locate the server on which to create your new Enterprise Architect model; in the example below this is DBSERVER02\SQLEXPRESS.
     
    SQLS_NewDBMenu
     
  2. Right-click and choose the New Database context menu option.
  3. Enter a suitable name for the database. Set any file options as required.
     
    SQLS_NewDB
     

Note:

Ensure that the database collation is case-insensitive.

  1. Click on the database to select it, then select the New Query menu option.
     
    SQLS_QueryAnal
     
  2. In the Query window, use the Open File dialog to locate the supplied Enterprise Architect SQL Server Model script file.
     
    SQLS_Selectsql
     
  3. Click on the Open button. Check that you have selected the correct database to run the script in. In this example the tables are being added to the ea_sqlserver database as shown in the drop-down menu below.
     
    SQLS_Run
     
  4. Click on the Execute button; SQL Server executes the script, which creates the base model for an Enterprise Architect project.