Update Log Database
Section titled “Update Log Database”Maintain your Nodinite Log Databases with confidence using the Update Guide in the Nodinite Web Client. This comprehensive guide empowers SQL DBAs and Nodinite administrators to:
- ✅ Safely update Log Database schemas to the latest version
- ✅ Manage SQL Server recovery modes (SIMPLE/FULL) automatically
- ✅ Verify Logging Service permissions by running scripts with service credentials
- ✅ Apply database updates to both Active and Archive Log Databases
- ✅ Minimize downtime with step-by-step service management
Navigate to Update Guide
Section titled “ Navigate to Update Guide”To access the Update Guide for Log Databases:
- Log on to the Nodinite Web Client.
- Navigate to Administration | Settings | Log Databases.
- Check whether the current Log Databases list shows an update is available.

An arrow next to the version means the schema is older than the one shipped with your Nodinite version. - Click the Update Guide button at the top of the page.

The Update Guide button sits next to Add Log Database.
The Update Guide will analyze your current Log Databases and detect if any schema updates are available.
Update Prerequisites
Section titled “ Update Prerequisites”Before starting the update process, ensure you have:
- SQL Server access – Administrative permissions on the SQL Server hosting the Log Databases.
- Backup completed – Always backup your databases before applying schema changes.
- Maintenance window – Schedule updates during low-activity periods to minimize impact.
- Logging Service credentials – Access to the Windows account running the Logging Service.
- .DACPAC file access – Default file:
C:\Program Files\Nodinite\{EnvironmentName}\LoggingService\Nodinite.LogDatabase.dacpac(where{EnvironmentName}is your EnvironmentName likeDEMO,Production, orTest). - Latest SqlPackage.exe (DACFX) – Its path is in the SqlPackageExecutable System Parameter.
LogDatabaseRecovery System Parameter
Section titled “ LogDatabaseRecovery System Parameter”The Update Guide automatically generates scripts based on the LogDatabaseRecovery System Parameter. This parameter determines the SQL Server recovery mode applied to Log Databases:
| SQL Environment | Recovery Mode |
|---|---|
| Always On Availability Groups (AOAG) | FULL |
| Standalone or Failover Cluster | SIMPLE |
- The Logging Service uses this value when creating new Log Databases.
- The Update Guide uses this value to set the recovery mode flag when applying schema updates with the .DACPAC file.
Learn more in the LogDatabaseRecovery System Parameter documentation.
Update Process Overview
Section titled “ Update Process Overview”The Update Guide provides a five-step wizard to safely update your Log Databases:
- Stop Logging/Monitoring Services – Prevent active database writes during schema updates.
- Put Archive Databases into Read-Only Mode – Protect historical data from accidental modifications.
- Command Line Scripts – Generate and execute SqlPackage.exe commands to apply schema updates.
- Set Archive Databases Back from Read-Only Mode – Re-enable write access to Archive databases.
- Restart Services – Resume normal operations.
Stop Logging and
Monitoring Services"] --> S2["fa:fa-lock Step 2
Archive databases
read-only"] S2 --> S3["fa:fa-terminal Step 3
Run SqlPackage.exe
scripts"] S3 --> S4["fa:fa-lock-open Step 4
Archive databases
read-write"] S4 --> S5["fa:fa-play Step 5
Restart services"] style S1 fill:#c33d34,color:#fff style S2 fill:#9E59BB,color:#fff style S3 fill:#E47528,color:#fff style S4 fill:#9E59BB,color:#fff style S5 fill:#93d16d,color:#000
Red: no data is collected while the services are stopped. Purple: archive databases are protected and then released. Orange: the schema update itself, run by you outside the Web Client. Green: normal operation resumes.

The Update Guide in the Web Client: open each step in order, and run the active and archive databases separately.

Animated walkthrough: a tour of the five steps; nothing is run.
In each step, Next unlocks only when the step is done: after both services report Paused (Step 1), after Read Only succeeded (Step 2), after you clicked Copy in each panel with commands (Step 3), and after Unset Read Only succeeded (Step 4).
Step 1: Stop Logging/Monitoring Services
Section titled “ Step 1: Stop Logging/Monitoring Services”Before applying database schema changes, stop the Nodinite Logging Service and Monitoring Service to prevent active writes to the databases. Stop tells both services to pause their background work. The Windows services keep running, so restarting a service also resumes it.
In the Update Guide, do the following:
- Click the Stop button.
- Wait until both services report Paused.

Before you click Stop, both services report Running.
Once the services have stopped, you can proceed to the next step.

Both services report Paused; the Next button is now enabled.
Click the Next button to proceed to Step 2.
Step 2: Put Archive Databases into Read-Only Mode
Section titled “ Step 2: Put Archive Databases into Read-Only Mode”Setting Archive Log Databases to read-only mode ensures historical data is protected during the schema update process.
In the Update Guide, do the following:
- Click Read Only.
- The Update Guide sets the Read Only flag on every archive Log Database.

Step 2 acts on archive databases only.
Once the read-only mode has been set, you can proceed to the next step.

The success message confirms that the archive databases are protected.
Click the Next button to proceed to Step 3.
Step 3: Command Line Scripts
Section titled “ Step 3: Command Line Scripts”In this step, the Update Guide generates SqlPackage.exe command-line scripts for updating database schemas, and you execute them to apply the changes.
Settings
Section titled “ Settings”The Update Guide uses the following settings to build the command-line scripts:
Dacpac executable file path
Section titled “Dacpac executable file path”Despite its label, this field holds the folder of the .dacpac file, by default C:\Program Files\Nodinite\<EnvironmentName>\LoggingService. The path to SqlPackage.exe itself comes from the SqlPackageExecutable System Parameter, for example C:\Program Files\Microsoft SQL Server\170\DAC\bin\SqlPackage.exe.
Configuration Options
Section titled “Configuration Options”- Encryption – Source Connection and Target Connection (enabled by default)
- Trust Certificate – Source Server Certificate and Target Server Certificate (enabled by default)
- Use Integrated Security – Connects to SQL Server with the integrated security of your Windows account (enabled by default)
- Ignore DACPAC Options – Advanced option to skip certain DACPAC deployment properties

Step 3 is taller than one screen: the Settings card first, the commands below it.
Commands
Section titled “ Commands”The Update Guide provides scripts for:
- Active Database – The current database actively receiving new log events.
- Archive Databases – New 7.12 One command per archive older than the
.dacpac; the heading counts them, Archive Databases (x of y to update).

Changing a setting rebuilds the commands; copy them with the Copy button.
Understanding the Generated Scripts
Section titled “Understanding the Generated Scripts”The scripts use SqlPackage.exe (part of SQL Server Data-Tier Application Framework) to deploy the .DACPAC file to your databases.
Example Script for the Active Database
Section titled “Example Script for the Active Database”"C:\Program Files\Microsoft SQL Server\170\DAC\bin\SqlPackage.exe" /Action:Publish /SourceFile:"C:\Program Files\Nodinite\DEMO\LoggingService\Nodinite.LogDatabase.dacpac" /TargetServerName:"localhost" /TargetDatabaseName:"Nodinite_DEMO_Log" /SourceEncryptConnection:true /TargetEncryptConnection:true /SourceTrustServerCertificate:true /TargetTrustServerCertificate:true /Properties:RegisterDataTierApplication=True /Properties:BlockOnPossibleDataLoss=False /Properties:BlockWhenDriftDetected=False /Properties:DropIndexesNotInSource=True /Properties:DropConstraintsNotInSource=True /Properties:ScriptNewConstraintValidation=False /Properties:PopulateFilesOnFilegroups=False /v:CustomPathData="null" /v:CustomPathImagedata="null" /v:CustomPathIndex="null" /v:RecoveryMode="FULL"Key Script Parameters
Section titled “Key Script Parameters”/Action:Publish– Deploys the .DACPAC schema to the target database./SourceFile– Path to the .DACPAC file (Nodinite.LogDatabase.dacpac)./TargetServerName– SQL Server instance name (e.g.,localhost,SQL-SERVER-01)./TargetDatabaseName– Name of the Log Database to update (e.g.,Nodinite_DEMO_Log)./SourceEncryptConnection:true//TargetEncryptConnection:true– Encrypt connections to SQL Server (recommended for security)./SourceTrustServerCertificate:true//TargetTrustServerCertificate:true– Trust SQL Server certificates (required for self-signed certificates)./Properties:BlockOnPossibleDataLoss=False– Allows schema changes that might result in data loss (use with caution)./Properties:DropIndexesNotInSource=True– Removes indexes not defined in the .DACPAC (ensures schema consistency)./Properties:DropConstraintsNotInSource=True– Removes constraints not defined in the .DACPAC./v:RecoveryMode– Critical: Sets the database recovery mode (SIMPLEorFULL) based on the LogDatabaseRecovery system parameter. The Update Guide automatically sets this value.
Customizing Scripts for Your Environment
Section titled “Customizing Scripts for Your Environment”You may need to customize the generated scripts in the following scenarios:
Scenario 1: Running scripts from a different server
Section titled “Scenario 1: Running scripts from a different server”If you need to run the update from a different SQL Server or workstation, copy the .DACPAC file to the target machine:
REM Copy .DACPAC file to SQL Server (replace DEMO with your environment name)copy "C:\Program Files\Nodinite\DEMO\LoggingService\Nodinite.LogDatabase.dacpac" "\\SQL-SERVER-01\C$\Temp\Nodinite.LogDatabase.dacpac"
REM Update script to reference new location"C:\Program Files\Microsoft SQL Server\170\DAC\bin\SqlPackage.exe" /Action:Publish /SourceFile:"C:\Temp\Nodinite.LogDatabase.dacpac" /TargetServerName:"SQL-SERVER-01" /TargetDatabaseName:"Nodinite_DEMO_Log" /SourceEncryptConnection:true /TargetEncryptConnection:true /SourceTrustServerCertificate:true /TargetTrustServerCertificate:true /v:RecoveryMode="FULL"Scenario 2: Using SQL Server authentication instead of Windows authentication
Section titled “Scenario 2: Using SQL Server authentication instead of Windows authentication”If your environment uses SQL Server authentication, clear Use Integrated Security and add the authentication parameters to the generated command:
/TargetUser:"sa" /TargetPassword:"YourSecurePassword"Scenario 3: SQL Server Always On Availability Groups (AOAG)
Section titled “Scenario 3: SQL Server Always On Availability Groups (AOAG)”For AOAG environments, you may need to:
- Temporarily remove the database from the availability group.
- Apply the schema update to the primary replica.
- Allow AOAG to synchronize changes to secondary replicas.
- Re-add the database to the availability group.
Scenario 4: Custom .DACPAC file location
Section titled “Scenario 4: Custom .DACPAC file location”If you have copied the .DACPAC file to a different folder, update the /SourceFile parameter:
/SourceFile:"D:\NodiniteBackups\DACPACs\Nodinite.LogDatabase.dacpac"Copy and Execute Scripts
Section titled “ Copy and Execute Scripts”- Copy the Active Database script from the left panel by clicking the Copy button.
- Copy the Archive Databases script from the right panel (this single script contains commands for all archive databases).
- Execute the scripts to apply the database schema updates.

Both archives are already on the dacpac version (5.4.0.5), so only the active database needs its command.
Use SQL Server Sysadmin Requirements when coordinating this with DBA/security policy, including non-sysadmin fallback actions.
Running as the Logging Service account ensures the service has proper SQL Server access rights for future automated database operations.
Recommended Execution Method
Section titled “ Recommended Execution Method”Run the scripts locally on the Nodinite Application Server, using the Logging Service credentials.
Why This Approach
Section titled “Why This Approach”- Verifies permissions – Confirms the Logging Service has proper SQL Server access rights.
- Future-proofs deployments – The Logging Service may automatically spawn new Log Databases when the Active database grows too large or reaches a time-based retention threshold (controlled by System Parameters).
- Security best practice – Ensures service account has minimal required permissions.
Execution Steps
Section titled “ Execution Steps”Step 3.1: Open an elevated Command Prompt
Section titled “Step 3.1: Open an elevated Command Prompt”- On the Nodinite Application Server, open Command Prompt as Administrator.
- Optionally, run the command prompt as the Logging Service user account using
runas:
runas /user:DOMAIN\NodiniteLogSvc cmd.exeFor policy-aligned alternatives and maintenance implications, review SQL Server Sysadmin Requirements.
Step 3.2: Navigate to the SqlPackage.exe directory
Section titled “Step 3.2: Navigate to the SqlPackage.exe directory”cd "C:\Program Files\Microsoft SQL Server\170\DAC\bin"Use the latest SqlPackage.exe (see Step 3 above); SQL Server 2022 installs it under 160\DAC\bin.
The encryption and certificate trust options in the generated scripts (/TargetEncryptConnection, /TargetTrustServerCertificate, and their Source counterparts) are the same kind of options the Logging Service takes from the SqlPackageParams System Parameter when it creates new Log Databases.
Step 3.3: Execute the Active Log Database script
Section titled “Step 3.3: Execute the Active Log Database script”Paste and execute the script you copied for the Active Log Database. It looks like the example script above, with your server, database, and environment names already filled in.
Expected output:
Importing to database 'NodiniteLog' on server 'SQL-SERVER-01'.Creating deployment planInitializing deploymentVerifying deployment planAnalyzing deployment planUpdating databaseSuccessfully published database.Step 3.4: Execute the Archive Log Database scripts
Section titled “Step 3.4: Execute the Archive Log Database scripts”Repeat Step 3.3 for each Archive Log Database script.
Common Errors and Solutions
Section titled “ Common Errors and Solutions”| Error Message | Cause | Solution |
|---|---|---|
Login failed for user 'DOMAIN\NodiniteLogSvc' |
Logging Service account lacks SQL Server permissions. | See Logging Service prerequisites for required permissions. |
Cannot find file: Nodinite.LogDatabase.dacpac |
.DACPAC file path is incorrect. | Verify the file exists at the specified path. Copy from installation folder if needed. |
Database is in use |
Active connections exist to the database. | Ensure Logging/Monitoring Services are stopped. Close any open SQL Server Management Studio connections. |
Timeout expired |
Large database or slow server. | Increase the timeout value in the connection string: Connection Timeout=300; |
Click the Next button in the Update Guide to proceed to Step 4.
Step 4: Set Archive Databases Back from Read-Only Mode
Section titled “ Step 4: Set Archive Databases Back from Read-Only Mode”After successfully applying schema updates, restore Archive Log Databases to read-write mode.
In the Update Guide, do the following:
- Click Unset Read Only.
- The Update Guide clears the Read Only flag on every archive Log Database. The step warns about this.

Archive databases you had set read-only on purpose before the update need to be set read-only again afterwards on the Log Database form.
If the operation is successful, the Update Guide will display a success message.

The success message confirms that maintenance can reach the archive databases again.
Click the Next button to proceed to Step 5.
Step 5: Restart Services
Section titled “ Step 5: Restart Services”Resume normal Nodinite operations by starting the Logging Service and Monitoring Service.
In the Update Guide, do the following:
- Click Start.
- Wait until both services report Running.

Both services report Running; logging and monitoring resume.
Frequently Asked Questions
Section titled “ Frequently Asked Questions”Do I need to update all Archive databases?
Section titled “Do I need to update all Archive databases?”Yes. All Archive Log Databases should use the same schema version as the Active database to ensure consistency and prevent errors when querying historical data.
What if I have 50+ Archive databases?
Section titled “What if I have 50+ Archive databases?”The Update Guide generates one large script containing all SqlPackage.exe commands for all Archive databases. For environments with many archives, consider:
- Execute the entire script – Run the generated script as-is. It will update all archives sequentially.
- Staged rollout – Edit the script to update critical/recent archives first, then older archives during subsequent maintenance windows.
- Archival strategy review – Evaluate if older archives can be exported and removed from active SQL Server to reduce update time.
Can I skip updating Archive databases?
Section titled “Can I skip updating Archive databases?”Not recommended. Skipping Archive database updates may cause:
- Query errors when searching historical log data.
- Incompatibility with new Nodinite features that rely on schema changes.
- Difficulty troubleshooting issues across Active and Archive databases.
How long does the update process take?
Section titled “How long does the update process take?”Update duration depends on:
- Database size – Larger databases take longer (expect 1-5 minutes per database).
- SQL Server performance – Faster servers complete updates more quickly.
- Number of Archive databases – More archives = longer total time.
Typical Update Times
Section titled “Typical Update Times”- Active database (10 GB): 2-5 minutes
- Archive database (50 GB): 5-15 minutes
- Total for 10 databases: 30-90 minutes
What if the Logging Service account doesn't have permissions?
Section titled “What if the Logging Service account doesn't have permissions?”If the Logging Service account lacks SQL Server permissions, refer to the Logging Service prerequisites documentation for detailed instructions on granting the required permissions.
As an alternative, run the scripts using a SQL Server sa account or domain administrator with elevated privileges. However, this does not verify that the Logging Service account has proper permissions for future automated database operations.
Do I need to restart the Nodinite Application Server?
Section titled “Do I need to restart the Nodinite Application Server?”No. Restarting the server is not required. Only the Logging Service and Monitoring Service need to be stopped and restarted.
How do I reclaim disk space after updates?
Section titled “How do I reclaim disk space after updates?”Database schema updates may allocate additional disk space that remains allocated even after the update completes. Nodinite can automatically reclaim disk space through the DatabaseMaintenance system parameter, or you can perform manual shrink operations.
Option 1: Automated shrink (recommended)
Section titled “Option 1: Automated shrink (recommended)”Enable the DatabaseMaintenance system parameter to allow the Logging Service to automatically shrink Archive databases during scheduled maintenance (03:00-04:00 AM):
- Set
DatabaseMaintenance = true(default) - Ensure the Logging Service account has the sysadmin role (required for shrink operations)
- Nodinite automatically reindexes and shrinks Archive databases as needed
Option 2: Manual shrink operations
Section titled “Option 2: Manual shrink operations”If you prefer manual control or have disabled automated maintenance, run SQL Server SHRINK operations on each updated database:
-- Shrink database to release unused spaceUSE [Nodinite_DEMO_Log]GODBCC SHRINKDATABASE ([Nodinite_DEMO_Log], 10)GONext Steps
Section titled “ Next Steps”- System Parameters for Log Databases
- Log Database Troubleshooting
- Automating removal of old Log Databases
Related Topics
Section titled “ Related Topics”- Always On Availability Groups
- Validation and DACPAC Registration
- Log Databases Overview
- Add or Manage Log Database
- What is a Log Database?
- Update Log Databases (Core Services)
- Create new Log Databases Manually
- SQL Server Sysadmin Requirements
- LogDatabaseRecovery System Parameter
- System Parameters Overview
- SqlPackageExecutable
- SqlPackageParams
- DatabaseMaintenance
- EnvironmentName
- Logging Service Overview
- Monitoring Service Overview
- Updating from v6 to v7