Using an alternative database setup

We recommend using the default database, which is Microsoft SQL Server 2005 Express Edition (SSEE), and letting the installation program set up the database for you.

Important: If you want to migrate to SQL 2005, you must first install WhatsUp Gold and its SSEE instance and then migrate to the SQL 2005 Database Engine.

You can manually configure WhatsUp Gold to:

Either of these options requires manually configuring the database, so you need to have knowledge of how to manage and configure SQL Server 2005. There are several points to consider before deciding to move from a default database environment that uses SSEE to a non-default configuration:

Supported databases

Database pre-requisites:

If you need assistance configuring or verifying these prerequisites, contact your database administrator or refer to the Microsoft SQL 2005 documentation.

Part I - Backing up the WhatsUp Database

  1. From the WhatsUp computer, make a backup of the database. From the main menu in the WhatsUp Gold console, select Tools > Database Utilities > Back Up SQL Database. For this example, we will save our database as database.dat in the root of D:\ (D:\database.dat).
  2. Close the WhatsUp Gold application; then, stop the Ipswitch WhatsUp Engine and the Ipswitch Web Server$WhatsUp, for more information see Stopping and starting the Ipswitch WhatsUp Engine and Stopping and starting the internal web server in the Help. If you are running IIS as your web server, stop IIS, then restart it.
  3. If open, close the Ipswitch Task Tray application. Right-click on the icon and select Close Task Tray Application.
  4. If the SQL server to which you will be migrating the database is on another computer, copy the .dat file, created in Step 1, to the SQL server. Otherwise, proceed to Part II.

Part II - Importing the WhatsUp Database into SQL 2005

  1. Create a database in SQL 2005 which has the following properties:
    1. Database name is WhatsUp.
    2. Default collation is SQL_Latin1_General_CP1_CI_AS.
  2. Find the location of the Data and Log file for this new database. This information is required later in the migration process.
    In SQL Server Management Studio, right-click the database, select Properties, then select the Files page. You can identify which file is the Data file by the value in the File Type column. The locations for the Data and Log files are under the Path column. In our example, the Data file is located in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WhatsUp.mdf and the Log file is located in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WhatsUp.ldf.
  3. Close Management Studio and any other applications which may be accessing the WhatsUp database on the SQL server.
  4. Open a command prompt on the SQL server and execute the following case-sensitive command to import the database into SQL.
    In our example, we have a default instance installed on a computer named SQL_1. If your SQL install is a named instance, rather than the default instance, specify your SQL server name as SQL_server_name\Instance_name.
    sqlcmd -E -S "<SQL_server_name>" -Q "RESTORE DATABASE [WhatsUp] FROM DISK='<location of .dat file>' WITH REPLACE, MOVE 'WhatsUp_dat' TO '<location of data file for SQL database>', MOVE 'WhatsUp_log' TO '<location of log file for SQL database>'"

    In our example, this becomes:
    sqlcmd -E -S "SQL_1" -Q "RESTORE DATABASE [WhatsUp] FROM DISK='D:\database.dat' WITH REPLACE, MOVE 'WhatsUp_dat' TO 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WhatsUp.mdf', MOVE 'WhatsUp_log' To 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WhatsUp.ldf'"
  5. After you receive the response that the database was successfully restored, close the command prompt.

Part III - Configuring the DSN

Important: Make sure that the instructions below are completed on the computer that WhatsUp Gold is installed on.

  1. On the WhatsUp computer, open the Data Sources (ODBC) control panel (Control Panel > Administrative Tools > Data Sources (ODBC)).
  2. Select the System DSN tab.
  3. Click Add..., select SQL Server, then click Finish.
  4. Specify a name for the DSN. It cannot be WhatsUp or any other in-use user or system DSN name. In this example, we will call ours DSN WhatsUp2.
  5. In the Server box, enter the IP Address or name of the SQL Server. You can browse for it from the menu or enter it manually. If you are using a named SQL instance, be sure to also enter the Instance Name. Click Next.
  6. Click to select the SQL Server authentication... option, then enter the credentials for the SQL user on your SQL server. Click Next.
  7. Click to select the Change the default database to option and select WhatsUp from the menu. Click Next.
  8. Click Finish.
  9. Click Test Data Source... and verify that no errors are listed. Click OK, then click OK again.

Part IV - Configuring WhatsUp to use the new database

  1. Run the Connection String Configuration Utility. This application is located in your WhatsUp installation directory (usually C:\Program Files\Ipswitch\WhatsUp\NmConfig.exe).
  2. Change the text in the Database connection string (DSN) field to match the new DSN created in Part III. In our example, it will read DSN=WhatsUp2.
  3. Enter the Username and Password for your SQL user from Part III, Step 6. Click OK.
  4. Click Yes to restart the Ipswitch services.

    Note: A dialog opens and tells you that you need to restart the WUG Engine. When you click Yes, not only are you restarting the WUG Engine, you are restarting the WUG Web Server. If you are running IIS as your web server, stop IIS, then restart it.

  5. On the WhatsUp computer, open the Windows Registry Editor (regedit.exe), and browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ipswitch WhatsUp Engine. Make a backup of this key.
  6. Delete the DependOnGroup and DependOnService values.
  7. Restart the WhatsUp computer.

    Note: If you prefer, you can now change the properties for the MSSQL$WHATSUP service so that it does not run automatically at boot. We do not recommended that you uninstall SQL Server 2005 Express Edition from the WhatsUp machine.