Skip to content
Documentation
Updated 15 minutes to read
Markdown

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

To access the Update Guide for Log Databases:

  1. Log on to the Nodinite Web Client.
  2. Navigate to Administration | Settings | Log Databases.
  3. Check whether the current Log Databases list shows an update is available.
    Log Databases list with the green update arrow in the Version column of the online Log Database (7.12)
    An arrow next to the version means the schema is older than the one shipped with your Nodinite version.
  4. Click the Update Guide button at the top of the page.
    Update Guide button at the top of the Log Databases page (7.12)
    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.

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 like DEMO, Production, or Test).
  • Latest SqlPackage.exe (DACFX) – Its path is in the SqlPackageExecutable 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.

The Update Guide provides a five-step wizard to safely update your Log Databases:

  1. Stop Logging/Monitoring Services – Prevent active database writes during schema updates.
  2. Put Archive Databases into Read-Only Mode – Protect historical data from accidental modifications.
  3. Command Line Scripts – Generate and execute SqlPackage.exe commands to apply schema updates.
  4. Set Archive Databases Back from Read-Only Mode – Re-enable write access to Archive databases.
  5. Restart Services – Resume normal operations.
graph LR S1["fa:fa-stop Step 1
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.

Log Database Update Guide with the five collapsed steps (7.12)
The Update Guide in the Web Client: open each step in order, and run the active and archive databases separately.

From the Version arrow to the Update Guide, opening each of the five steps without running any, animated walkthrough (7.12)
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).

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:

  1. Click the Stop button.
  2. Wait until both services report Paused.

Update Guide Step 1 with the Stop button and LoggingService and MonitoringService shown as Running (7.12)
Before you click Stop, both services report Running.

Once the services have stopped, you can proceed to the next step.
Update Guide Step 1 with LoggingService and MonitoringService shown as Paused
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:

  1. Click Read Only.
  2. The Update Guide sets the Read Only flag on every archive Log Database.

Update Guide Step 2 with the Read Only button (7.12)
Step 2 acts on archive databases only.

Once the read-only mode has been set, you can proceed to the next step.
Update Guide Step 2 success message after archive databases were set to read-only
The success message confirms that the archive databases are protected.

Click the Next button to proceed to Step 3.

In this step, the Update Guide generates SqlPackage.exe command-line scripts for updating database schemas, and you execute them to apply the changes.

The Update Guide uses the following settings to build the command-line scripts:

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.

  • 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

Update Guide Step 3 with the two disk space and DACFX notes and the Settings card (7.12)
Step 3 is taller than one screen: the Settings card first, the commands below it.

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).

Update Guide Step 3 with the Active Database and Archive Databases commands, each with Copy, and the note to run them as the Logging Service account (7.12)
Changing a setting rebuilds the commands; copy them with the Copy button.

The scripts use SqlPackage.exe (part of SQL Server Data-Tier Application Framework) to deploy the .DACPAC file to your databases.

Terminal window
"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"
  • /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 (SIMPLE or FULL) based on the LogDatabaseRecovery system parameter. The Update Guide automatically sets this value.

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:

Terminal window
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:

Terminal window
/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:

  1. Temporarily remove the database from the availability group.
  2. Apply the schema update to the primary replica.
  3. Allow AOAG to synchronize changes to secondary replicas.
  4. Re-add the database to the availability group.

If you have copied the .DACPAC file to a different folder, update the /SourceFile parameter:

Terminal window
/SourceFile:"D:\NodiniteBackups\DACPACs\Nodinite.LogDatabase.dacpac"
  1. Copy the Active Database script from the left panel by clicking the Copy button.
  2. Copy the Archive Databases script from the right panel (this single script contains commands for all archive databases).
  3. Execute the scripts to apply the database schema updates.

Update Guide Step 3 with the Active Database command and Archive Databases (0 of 2 to update): none of the archive databases requires an update (7.12)
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.

Run the scripts locally on the Nodinite Application Server, using the Logging Service credentials.

  • 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.
  1. On the Nodinite Application Server, open Command Prompt as Administrator.
  2. Optionally, run the command prompt as the Logging Service user account using runas:
Terminal window
runas /user:DOMAIN\NodiniteLogSvc cmd.exe

For 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”
Terminal window
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:

Terminal window
Importing to database 'NodiniteLog' on server 'SQL-SERVER-01'.
Creating deployment plan
Initializing deployment
Verifying deployment plan
Analyzing deployment plan
Updating database
Successfully 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.

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:

  1. Click Unset Read Only.
  2. The Update Guide clears the Read Only flag on every archive Log Database. The step warns about this.

Update Guide Step 4 with the warning and the Unset Read Only button (7.12)
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.
Update Guide Step 4 success message after archive databases were set back to read-write
The success message confirms that maintenance can reach the archive databases again.

Click the Next button to proceed to Step 5.

Resume normal Nodinite operations by starting the Logging Service and Monitoring Service.

In the Update Guide, do the following:

  1. Click Start.
  2. Wait until both services report Running.
    Update Guide Step 5 with LoggingService and MonitoringService shown as Running (7.12)
    Both services report Running; logging and monitoring resume.

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.

The Update Guide generates one large script containing all SqlPackage.exe commands for all Archive databases. For environments with many archives, consider:

  1. Execute the entire script – Run the generated script as-is. It will update all archives sequentially.
  2. Staged rollout – Edit the script to update critical/recent archives first, then older archives during subsequent maintenance windows.
  3. Archival strategy review – Evaluate if older archives can be exported and removed from active SQL Server to reduce update time.

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.

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.
  • 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.

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

If you prefer manual control or have disabled automated maintenance, run SQL Server SHRINK operations on each updated database:

-- Shrink database to release unused space
USE [Nodinite_DEMO_Log]
GO
DBCC SHRINKDATABASE ([Nodinite_DEMO_Log], 10)
GO

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...