# Upgrade Database

SonicDICOM PACS uses Microsoft SQL Server Compact as the default database.
Since Microsoft SQL Server Compact is not necessary to be installed, it is suited for trial use of SonicDICOM PACS.
However, it is not suited for the use in a production environment.
And if you use this database in a production environment, we are unable to provide any support.

Therefore, if you intend to use SonicDICOM PACS in a production environment, you need to upgrade it to Microsoft SQL Server.
In this page, we provide information on how to upgrade to Microsoft SQL Server Express, which is a free edition, and Microsoft SQL Server Standard, which is a paid edition.

# Upgrade to Microsoft SQL Server Express

Although Microsoft SQL Server Express is available free of charge, it has a 10GB limit on the size of the database file.
If the size of the database file reaches its limit, errors may occur, such as not receiving DICOM files from modalities.
In this case, you need to upgrade the database to a higher edition such as Microsoft SQL Server Standard, which is a paid edition.

Info

Depending on the environment and usage, the approximate number of images that can be stored with Microsoft SQL Server Express is two million.
If there is a possibility of exceeding this, please consider upgrading to a higher edition such as Microsoft SQL Server Standard.

NOTE

Microsoft SQL Server Standard is a paid edition.
For more information on how to buy, prices, licensing details, etc., please contact Microsoft or a retailer of Microsoft products.

# How to upgrade

  1. Download Microsoft SQL Server 2017 Express from the following URL:
    https://www.microsoft.com/en-US/download/details.aspx?id=55994 (opens new window)
  1. Start up "SQLServer2017-SSEI-Expr.exe".
  2. Click "Download Media".

Click Download Media

  1. Click "Express Core".
  2. Click "Download".

Click Express Core, and then click Download

  1. Click "Open folder".
  2. Click "Close".

Click Open folder

  1. Start up the installer "SQLEXPR_x64_ENU.exe" that is in the displayed folder.
  2. Click "OK".

Start up the installer

  1. Click "New SQL Server stand-alone installation or add features to an existing installation".

Click New SQL Server stand-alone installation or add features to an existing installation

  1. Read through the "License Terms" and check "I accept the license terms." after confirming the content.
  2. Click "Next".

Agree License Terms

  1. Click "Next".

NOTE

If the environment can use Microsoft Update, we recommend checking "Use Microsoft Update to check for updates (recommended)".

Use Microsoft Update to check for updates

  1. Click "Next".

Click Next

  1. Check "Database Engine Services".
  2. Click "Next".

Check Database Engine Services

  1. Select "Default instance".
  2. Click "Next".

Select Default instance

  1. Click "Next".

Click Next

  1. Click "Next".

Click Next

  1. Click "Close".

Click Next

  1. Click "Install SQL Server Management Tools".

Click Install SQL Server Management Tools

  1. Download the installer.

Download the Installer

  1. Start up the downloaded installer "SSMS-Setup-ENU.exe".
  2. Click "Install".

Start up the installer and click Install

  1. Click "Close".

Click Close

  1. On the Start Menu, please follow All Programs > Microsoft SQL Server 2017 > SQL Server Management Studio to start up.

  2. Click "Connect".

Click Connect

  1. From the left pane, click "Security".
  2. Click "Login".
  3. Right-click "NT AUTHORITY\SYSTEM".
  4. Click "Properties".

Right-click NT AUTHORITY\SYSTEM, and then select Properties

Info

When SonicDICOM PACS accesses the database, "NT AUTHORITY\SYSTEM" is the user name because SonicDICOM PACS operates as a Windows service.

  1. From the left pane, click "Server Roles".
  2. Check "sysadmin".
  3. Click "OK".

Select Server Roles from the left pane, check sysadmin

Info

When SonicDICOM PACS starts up, it needs to build database file. So "sysadmin" permission is necessary.

# Change the database to be used

  1. Click the link below and follow the instruction to change the type of database to be used to Microsoft SQL Server.

Reference Link

# Upgrade to Microsoft SQL Server Standard

# How to upgrade

  1. Start "setup.exe" of Microsoft SQL Server Standard you obtained.
  2. Click "Maintenance".

Click Maintenance

  1. Click "Edition upgrade".

Click Edition upgrade

  1. Enter the Product Key.
  2. Click "Next".

Enter the Product Key

  1. Read through the "License Terms" and check "I accept the license terms." after confirming the content.
  2. Click "Next".
  3. Select an instance of SQL Server.
    If you selected the "Default instance" in step 17., select "MSSQLSERVER".
  4. Click "Next".
  5. Click "Upgrade".
  6. Click "Close".