Setting up GainSeeker on a SQL Server database

Your SQL Server database administrator (DBA) must perform the following steps on the SQL Server:

  1. Use SQL Server Management Studio or another tool to manually create a new GainSeeker database. You can use default or typical settings for a new database, except for the following:

  2. If using SQL Server authentication (recommended), create a SQL Server Login (user) for this GainSeeker database. For this new user:

    1. Set the Default Database to the GainSeeker database.
      In SQL Server Management Studio, while creating the new Login, use the General page to find this setting.

    2. For the GainSeeker database, grant the roles of public and db_owner to this user.
      In SQL Server Management Studio, while creating the new Login, use the User Mapping page to find this setting.

Important: For SQL Server on Linux, you are required to use SQL Server authentication.

  1. Create all necessary tables in the GainSeeker database. Scripts for creating and populating the necessary tables are provided in the GainSeeker installation package:

    • Locate the script SPC8_SS.SQL in the \Scripts\SQLSVR\ folder.

    • If you plan to use Expanded data fields, edit the script and update the variables @DBPSD, @DBPD, and @DBUDL to the desired field lengths.

    • If you plan to use Additional traceability columns, edit the script and add columns to the DDAT_AUX, VDAT_AUX, and VMON_AUX tables (see comments in the script file)..

  2. Ensure that statistics will be updated regularly for this database.

  3. Ensure that SET NOCOUNT is OFF for the GainSeeker database by running the query  SET NOCOUNT OFF  for this database. (If SET NOCOUNT is ON, GainSeeker will display error messages and fail to store some types of data records.) For more information, see https://docs.microsoft.com/en-us/sql/t-sql/statements/set-nocount-transact-sql.

After setting up the database, you can install the GainSeeker client on each workstation.