Microsoft SQL Server related considerations

Microsoft's SQL Server and SSMS (SQL Server Management Studio) are required if you will be using the Historical Data Server (HDS) for either event logging and / or trend recording. See the topic Operating System and PC Requirements for a list of supported SQL Server versions.

The use of the HDS is not mandatory. You can alternatively use the other types of archive units supported by PcVue for event logging and trend recording.

SQL Server Express Edition

Small to medium sized projects may find the free and download-able Express edition is suitable. The main limitations of the Express edition are as follows.

  • The maximum size of each relational database is 10GB
  • The maximum memory that can be used by the SQL Server Database Engine is 1GB.
  • The SQL Agent administration tool is not included in Express.
  • The limit on the buffer cache for each instance is 1MB of RAM.
  • The relational database engine is restricted to the lesser of 1 socket or 4 cores.

SQL Server Express can be downloaded from https://www.microsoft.com/sql-server/sql-server-downloads

SQL Server Management Studio can be downloaded from https://docs.microsoft.com/sql/ssms/download-sql-server-management-studio-ssms

Installation recommendations

The installation process may vary depending on the exact version you are installing and the operating system. The following is a recommendation for a typical installation of the Express edition.

  1. Start the installation by running the installable executable. It will be named something like SQLEXPRWT_x64_ENU.exe. The SQL Server Installation Center dialog is displayed. First run the System Configuration Checker to make sure the PC is ready to install SQL Server Express Edition.
  2. A setup support check will run. If there is any error or warning, then that must be investigated and corrected. When all rules in the System Configuration Check have passed, the dialog closes automatically.
  3. Click on Options at the SQL Server Installation Center. Confirm or select the architecture to install and then click on Installation.
  4. Select New SQL Server stand-alone installation or add features to an existing installation.
  5. The SQL Server Setup will now appear starting at the License Terms. Read, and if you agree with them tick the box I accept the license terms and click Next to continue.
  6. If you have an Internet connection, the setup will then check for any product updates. Depending on your IT strategy, you can choose to accept them or not.
  7. Click Install to install the Setup Support Files.
  8. In the Feature Selection dialog, select Database Engine Services and Management Tools - Complete then click Next. Note the list of prerequisites displayed in the right pane.
  9. In the Instance Configuration dialog, select a named instance for your installation. You can either specify a unique name or use the default instance. Click Next.
  10. In the Server Configuration dialog, change the SQL Server Browser's Startup Type to Automatic and then click Next.
  11. In the Database Engine Configuration page, you can either use the default of Windows Authentication Mode only or select Mixed Mode (SQL Server authentication and Windows authentication).
    • Windows Authentication - Allows the user to connect to the database server without having to enter a password. The Windows credentials (username and password) in use at connection time are used. If this option is selected, SQL authentication is disabled. In the case of connecting to a database through a network, the user must be known (i.e. have a domain) on both computers. This method is recommended when the SQL Server is on the same PC as PcVue and you are not using replication. The replication process will not work in Windows Authentication mode.
    • SQL Authentication - The user will have to enter a login and a password at connection time. If this option is selected, the Windows Authentication remains active and you can still connect in this way. If the SQL Server is not on the same PC as PcVue or you are using replication, it is recommended that you use SQL Authentication. If you are using SQL Authentication, you must select the option button Mixed Mode then enter and confirm the SQL Server system administrator (SA) password. Any blank or weak password will be rejected.
  12. Before you can continue, you must also specify the groups that are to have unrestricted access to SQL Server. Click Add... and select the groups. We recommend that you at least add Administrators and the current user. Use Add Current User. When you have finished, click Next. The installation then starts.

  13. You can monitor the setup's progress in the Installation Progress dialog. When the installation is finished, click Next.
  14. Close the SQL Server Configuration Manager.