SQL Server Installation and QC Calc Database Creation
You must have a valid SQL Server installation (MS SQL Express 2016 or higher, MS SQL Server 2016 or higher). If you do not have SQL Server installed, you will need to either purchase a full version from Microsoft or you can download the latest version of SQL Server Express for free from Microsoft’s website. This version has a couple of limitations, mainly a 10 Gb data limit, so it is not recommended for long-term use where a lot of data will be collected.
If your QC Calc database does not exist, it is fairly simple to create one. You can do it yourself manually, or our software (QC-CALC Real-Time) can create the database using a built-in creation utility.
Enable Mixed Authentication Mode
During the SQL Server install process, you will be asked which Authentication Mode to use. We highly recommend using Mixed Mode (which allows both SQL Server and Windows authentication).
NOTE: The password for the SQL Server system administrator account entered on this screen will be needed later to create the QC Calc database, so note the password you entered here.
Changing SQL Server to enable Mixed Mode Authentication
If you have already installed SQL Server with Mixed Mode Authentication skip this section and go to Automatic Database Setup
If you need to set the Authentication Mode in the future because you missed this step during installation, you can do this through the SQL Server Management Studio utility:
- Right-click on your server in the Object Explorer and choose Properties.
- Select the Security section.
- Under Server Authentication choose "SQL Server and Windows Authentication Mode"
- Click OK to save the setting change.
Automatic Database Setup (Preferred Method)
You can create the database using QC-CALC Real-Time.
- Within the application choose Tools > Options > Data Storage. The following screen will appear.
- Select from the Data Storage Type dropdown (#1) the MS SQL Server selection
- Click on the Create Database button (#2) and follow the steps in the next image.
- Enter the server name and SQL instance (if necessary). If you are running SQL Express, this instance is “\SQLExpress” by default.
- Enter the name you would like for your database. By default, we suggest “qc_calc”.
- Enter “sa” as the System Administrator ID and the password you specified when installing SQL Server (see SQL Server Setup Guide section on page 1).
Note: If you are getting this information from your IT department, please make sure you get an USER ID and PASSWORD with System Administrator privileges. The ID will be used once to create the QC Calc database, add logins to the server, and add a user to the database.
NOTE (for IT Professionals): The sa user account is only needed for the initial database creation and will not be used going forward. A separate user account called “qccadmin” is created database creation process. This account is given db_datareader, db_datawriter, and db_owner access to this database only. When the database creation is completed, you’ll be presented a message that will inform you with the user name: qccadmin, and the default password: NimdaccQ12 that will be used going forward to connect all copies of any of the Prolink software to the QC Calc database.
NOTE (for IT Professionals): The db_owner role was added to allow the user to update the database when new versions of our software are available. This can be removed if there are security concerns.
Manual Database Setup (Alternative dB creation method)
This section will help you create a database manually by adding the tables and user permissions. These steps will create the tables of your database, and you will be ready to begin using all Prolink software’s once you have finished. You must use Microsoft’s SQL Server Management Studio to use the database creation method.
- You will see the following screen when SQL Server Management Studio opens. Click Connect to connect to the SQL Server using Windows Authentication for now.
- Right-click on Databases on the left-hand column and select New Database.
- Give your database a name. For this example, we will call our database qc_calc_2 since the standard qc_calc name was used during the Create Database operation. Click OK.
- Again from the column on the left side, expand Security section
- Right-click on Logins and select New Login.
- Create a Login name. For this example, we’ll be using qccadmin
- Make sure that SQL Server Authentication is selected and then create and confirm a Password. Make sure that the Enforce password policy option is unchecked.
- Select the database you just created as your Default database. In this example, it would be qc_calc_2. Click OK.
- Expand Databases on the left-hand side, and then expand your default database. Within that, expand Security.
- Right-click on Users and select New User.
- On the General page, set your User Name and Login Name to match the one you just created.
- On the Membership page, under Database Role Members check db_datareader, db_datawriter, and db_owner. Click OK.
- On the main Microsoft SQL Server Management Studio window, click New Query.
- From QC-CALC Real-Time, choose the Tools > Options > Data Storage menu and select from the Data Storage Type dropdown, the MS SQL Server selection
- Then click the Get Script Only button.
- Click in the area at the bottom of the screen, click the CTRL+Home keys to go to the very top of that area, then click the CTRL+Shift+End keys to highlight the entire script. Right-click the highlighted text and choose Copy to get the script into the clipboard.
- Next, return to the Microsoft SQL Server Management Studio window and paste your clipboard into your new query window.
- Ensure the database you created (qc_calc_2 in our example) is shown in the upper left of the screen and click Execute.
Enable Remote Access to SQL Server
To allow remote access to your SQL server:
- Open SQL Server Configuration Manager
- Expand the SQL Server Network Configuration section
- Select Protocols for SQLEXPRESS (or MSSQLSERVER if you’re using the full version of MS SQL Server)
- Right-click on TCP/IP and select Enable
- Right-click on Named Pipes and select Disable
- Right-click TCP/IP and choose Properties. Select the IP Addresses tab.
- Scroll down to the very bottom. Enter “1433” for the TCP Port under the “IPAll“ section.
- Restart the SQLEXPRESS service (or MSSQLSERVER service for the full version of SQL Server)
A Note on QC Calc SPC Local Users
When you set up a new connection to a database in QC Calc SPC for the first time, you’ll be asked to create a local user (“Local User ID” in the picture below). This is a local user for the QC Calc SPC application specifically. It’s distinct from the user that connects to the database (“User ID” in the picture below). You can also sign into QC Calc SPC with your Windows Single-Sign On user.
Your local QC Calc SPC user account keeps your work separate from other users in the system and prevents another user from inadvertently changing your reports or filters.
Please note that if you attempt to sign in with a local user account that already exists and has a different password, you will be challenged for the correct password. The user account will not be added if there is an existing one with the same name.
You can change the local user signed into QC Calc SPC anytime by going to File > Change Current Login.