How to install and configure SQL Express
Set up Microsoft SQL Server Express and prepare it for use with UserLock.
SQL Server Express is a free edition of Microsoft SQL Server. It is commonly used as a lightweight production database for UserLock when a full SQL Server is not required.
This guide walks you through installing SQL Express 2019 with default parameters and configuring it to host the UserLock database.
💡️ Before you begin, check the Database reference for supported versions and prerequisites.
Note
- SQL Express version used: SQL Express 2019 + Tools 
- Authentication Method used: SQL Server Authentication 
- SQL Installation type : Local with default parameters 
- SQL Express database size limit: 10 GB max 
Download: Microsoft SQL Server 2019 Express
- Launch the SQL Server setup and click New SQL Server installation.  
- Accept the license terms and click Next.  
- (Optional) To update SQL Express during installation, check Use Microsoft Update, then click Next.  
- Leave the default parameters and proceed with Next through the wizard.    
- When prompted for authentication mode, select Mixed Mode. - Define a password for the - saaccount.
  
- Continue with the default settings until the wizard completes, then click Close.  
- Download and install SQL Server Management Tools (SSMS).  
- Open SQL Server Management Studio.  
- At the logon window: - Enter the server name and instance (e.g. - SERVERNAME\SQLEXPRESS).
- Choose SQL Server Authentication. 
- Enter your credentials and click Connect. 
  
- Create the UserLock database: - In the Database name field, enter e.g. - UserLock.
- Click OK. 
   
- Create a dedicated SQL account (recommended, instead of using - sa):- In Login name, type e.g. - UserLockAdmin.
- Select SQL Server authentication and assign a password. 
- Adjust password policies if required by your IT policy (enforce policy, expiration, force change at logon). 
- Optionally set a default database and language. 
   
- Assign database roles: - In User Mapping, select the - UserLockdatabase.
- Assign roles: - db_datareader,- db_datawriter,- db_ddladmin.
- Click OK to validate. 
 
- Secure authentication: avoid using the - saaccount for day-to-day operations. Create a dedicated SQL account for UserLock with the required roles only.
- Plan for growth: SQL Express has a 10 GB size limit. Monitor usage and consider migrating to a full SQL Server if your deployment grows. 
- Set up backups early: configure regular SQL Server backups before moving into production. 
- Restrict access: limit network access to the SQL Express instance with proper firewall and permissions. 
With SQL Express installed and configured, you can now connect UserLock to this database.
See:
- Define a production database: to configure UserLock to use the SQL Express instance you just installed. 
- Migrate Userlock data from MS Access to SQL Server: if your current production data is still in Access and must be preserved.