How to create a personal local DWB environment
If you want to evaluate the Diversity Workbench applications or if you are working on a small project, a local database installation might be interesting for you. This tutorial describes how to create an environment as shown as Alternative A on page DWB environments alternatives.
Install Microsoft SQL Server
You need a local database engine, the Microsoft SQL Server. We recommend to install the version Microsoft SQL Server Express 2014, which can be downloaded for free from the Microsoft homepage.
Step 1: Download Microsoft SQL Server Express 2014 from the Microsoft download page. There are several different versions available, depending on the operating system version (32 or 64 bit) and the included tools. Since you have to administer the database engine, use the version "ExpressAndTools".
Step 2: Install Microsoft SQL Server Express 2014 according the Install Instructions on the Microsoft download page. Please choose the option to enable the .NET Framework 3.5 SP1 since you will need it for the DWB clients, too.
Configure Microsoft SQL Server
After Microsoft SQL Server installation the following tools shoud be available:
- Microsoft SQL Server Management Studio
- Microsoft SQL Server Configuration Manager (might be integrated in "Computer management")
First you have to activate the TCP/IP protocol for communication with the database server. Start the Microsoft SQL Server Manager, if this application is available (see image below).
Otherwise open the file explorer, right-click on "This PC" and click "Manage" in the context menu. You will find the SQL Server Configuration Manager in branch "Services and Applications" (see image below).
Open "Protocols for MSSQLSERVER" and in the main window right-click on "TCP/IP". In the context menu select "Properties". A new window with two tabs opens (see images below).
Usually TCP/IP is deactivated after the installation of the Microsoft SQL Server. Set value "Enabled" to "Yes" in the "Protocol" tab. In the "IP Addresses" tab scroll down to the end of the table and enter the TCP Port (e.g. "5432") in the "IPAll" section. After confirming with "OK" the SQL Server will automatically be restarted to make the changes effective.
Attach a database
At the DWB software download pages empty databases are available that can be attached to your local SQL Server. The downloaded zip file contains two database files, e.g. DiversityDescriptions_Base.mdf and DiversityDescriptions_Base_log.ldf. Unpack the files to your local hard disk. If you like, you may rename them, e.g. to DiversityDescriptions_New.mdf and DiversityDescriptions_New_log.ldf.
Now start the Microsoft SQL Server Management Studio. In the "Connect to Server" panel enter the Server name "localhost" and chose "Windows Authentication". At the left side of the window you should see the server and some contained items. Right-click on item "Databases" and select "Attach..." from the context menu (see image below).
A new window "Attatch Databases" will open. In section "Databases to attach click on button "Add..." (see image below).
In column "Attach as" you may now enter the new database name, e.g. "DiversityDescriptions_New". Since the database files had been renamed, in the "Database details" section the message "NOT FOUND" will be shown for the database files. Click on the buttons "..." of column "Current File Path" to navigate to the actual files (see image below).
If the database was attached successfully, you may close the Microsoft SQL Server Management Studio. When you open the DWB client, enter the server name "localhost", the port number administered with the Microsoft SQL Server Configuration Manager and "Windows authentication" to connect to the database.
After the first connection you will usually get a message to update the database. After the database update check the menu items Administration->Set published name... and Administration->Logins... to do some basic settings. More details can be found in the client's manual (press F1 when in the client window).
If you have problems with opening the DWB client or the manual, please check the General Download Notes.