Database Setup
Overview
GroundControl VGRS requires two Microsoft SQL Server databases to operate:
GC- Main application databaseGC.EventLogging- Event and logging database
This guide covers the creation of these databases and the configuration of authentication for the GroundControl VGRS service.
Prerequisites
- Microsoft SQL Server installed and accessible
- SQL Server Management Studio (SSMS) or equivalent database management tool
- Administrative access to the SQL Server instance
Database Creation
Create Required Databases
Two databases must be created on your SQL Server instance:
GC- The main database for GroundControl VGRSGC.EventLogging- The database for event logging
Authentication Configuration
GroundControl VGRS supports two authentication methods for database access. Windows Integrated Authentication is the recommended method.
Windows Integrated Authentication (Recommended)
Windows Integrated Authentication uses the Windows service account under which GroundControl VGRS runs to authenticate with SQL Server.
Service Account
The GroundControl VGRS Windows service runs under the GroundControlService user account. This account must be granted access to both databases.
Grant Database Access
- In SQL Server Management Studio, navigate to Security > Logins
- Add the
GroundControlServiceuser as a login (if not already present) - For each database (
GCandGC.EventLogging):- Navigate to the database in Object Explorer
- Expand Security > Users
- Add the
GroundControlServiceuser - Assign the
db_ownerrole to the user
Recommended Role
The db_owner role is recommended for the GroundControlService user as it provides the necessary permissions for database schema management and operations.
SQL Server Authentication
Alternatively, a SQL Server user account can be created and used for authentication.
Create SQL User
- In SQL Server Management Studio, navigate to Security > Logins
- Create a new SQL Server authentication login
- Set a strong password for the account
- For each database (
GCandGC.EventLogging):- Navigate to the database in Object Explorer
- Expand Security > Users
- Add the SQL user
- Assign the
db_ownerrole to the user
Security Consideration
When using SQL Server authentication, the connection string in appsettings.json will contain the username and password. Ensure that the configuration file is properly secured with appropriate file system permissions.
Configuration in GroundControl VGRS
After setting up the databases and authentication, configure the database connections using the Manager Tool.
Connecting to Databases
- Launch the Manager Tool (via desktop shortcut or Start Menu)
- Navigate to the Database section
- Configure the connection settings for both databases:
- Default Connection: Connect to the
GCdatabase - EventLog Connection: Connect to the
GC.EventLoggingdatabase
- Default Connection: Connect to the
For detailed information on database connection fields and configuration options, see the Database section in the Manager Tool documentation.
Verification
After completing the setup and configuration:
- Ensure both databases exist:
GCandGC.EventLogging - Verify the authentication user has
db_ownerrole on both databases - Test the GroundControl VGRS service startup to confirm successful database connectivity
Setup Complete
Once the databases are created, authentication is configured, and the connection strings are set in appsettings.json, the GroundControl VGRS services can connect to the databases and will automatically create the required schema on first startup.

