---
title: Create Log Databases Manually – DACPAC Guide for Restricted SQL Environments
description: "Create Nodinite Log Databases manually when the Logging Service may not create them itself: name them per LogDatabaseName, deploy the Log Database DACPAC with SqlPackage, grant access, and register them in the Web Client."
---

# How do I install a Log Database Manually?

Normally the [Logging Service][] creates every [Log Database][Log Databases] itself: the first one when it starts for the first time, and the next ones when the online one gets too large or too old (see [How a new Log Database is created][]). Manual Log Database creation is for environments where that can't happen: the Logging Service account doesn't get the SQL Server rights to create databases, or your DBAs must create every database themselves.

![Administration Log Databases: Add Log Database, Database Nodinite_DEV_Log_20261201 already deployed from the DACPAC, Linked Server localhost, Archive Database unticked, Start date-time 2026-12-01, End date-time read-only, Save and close; the list then shows the new Log Database from 2026-12-01 with Version 5.4.0.5, and the previous one with End Date 2026-12-01, animated walkthrough (7.12)][1]  
*Animated walkthrough: a Log Database deployed by a DBA is registered for December 2026. Saving gives the online Log Database that Start date-time as its End Date, so the new one takes over from 2026-12-01.*

## <i class="fal fa-info-circle" aria-hidden="true"></i> When to Create Log Databases Manually

* **Security policies** – the Logging Service account may not have `dbcreator` or `sysadmin`; see [SQL Server Sysadmin Requirements][].  
* **Planned periods** – you want to create Log Databases in advance, for example one per quarter.  
* **Always On Availability Groups** – your DBAs add every database to the availability group themselves; see [Always On Availability Groups][AlwaysOn].  
* **Network segmentation** – the Log Database lives on an instance the Logging Service can't create databases on.  

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>For standard deployments, let the Logging Service create Log Databases. Manual creation means you also own the timing: when the online Log Database reaches <a href="https://docs.nodinite.com/administration/settings/system-parameters/sizetosplitdatabaseon/">SizeToSplitDatabaseOn</a> or <a href="https://docs.nodinite.com/administration/settings/system-parameters/daystosplitdatabaseon/">DaysToSplitDatabaseOn</a> and no new database can be created, logging is affected.</p></div>
</aside>

## <i class="fal fa-list-ol" aria-hidden="true"></i> Create a Log Database Manually

### Step 1: Choose the Name

Name the database per the [LogDatabaseName][] pattern, for example `Nodinite_Prod_Log_20260101`, where the environment part comes from [EnvironmentName][] and the date is the start of the period. For a database you create yourself the date is your choice; a Log Database the Logging Service creates is named after its UTC creation date.

### Step 2: Deploy the Log Database Schema

Deploy the Log Database DACPAC with `SqlPackage.exe`, the same way the [Update Log Database][] guide deploys schema updates. Use a command from the guide's **Command Line Scripts** step, set `/TargetDatabaseName` to the new name, and add `/p:RegisterDataTierApplication=True`. Nodinite reads the database version from that data-tier application registration; without it, the Log Databases list shows **Version** 0.0.0.0 with the update arrow. Keep the recovery model and file locations consistent with [LogDatabaseRecovery][] and [LogLocations][]. Use the latest DacFx version ([SqlPackageExecutable][]).

### Step 3: Grant Access

Give every account in [LogServiceUsers][] the database roles in [LogAccessRoles][] on the new database. The rights per [Core Service][Core Services] are listed in [Prerequisites][].

### Step 4: Register the Log Database in Nodinite

1. In the [Web Client][], open **Administration › Log Databases** and click **Add Log Database** ([Add or manage a Log Database][]).
2. Enter the **Database** name and the **Linked Server / Listener Name**, for example `localhost` when the database is on the SQL Server of the [Configuration Database][ConfigDB], otherwise the name of the [linked server][Linked Servers].
3. Untick **Archive Database**: you register a new, empty Log Database.
4. Set the **Start date-time**, the first moment of its period. **End date-time** is read-only: <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> sets it when the database becomes an archive.
5. Click **Save and close**.

On save, the online Log Database gets the new Start date-time as its End Date, and the new Log Database becomes the online one. Events dated before that Start date-time still go to the previous Log Database, so you can register a planned database in advance. Register planned databases one at a time, in date order: each registration ends the online Log Database at its Start date-time.

Keep **Archive Database** ticked only when you register an existing database that holds data, for example a restored archive; see [Archive Database][Add or manage a Log Database - Archive Database].

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-database" aria-hidden="true"></i> [Add or manage a Log Database][]  
* <i class="fal fa-book" aria-hidden="true"></i> [Update Log Database][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Log Database Overview][Log Databases]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-box-full" aria-hidden="true"></i> [Core Services Overview][Core Services]  
* <i class="fal fa-database" aria-hidden="true"></i> [Configuration Database][ConfigDB]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-tag" aria-hidden="true"></i> [Environment][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [System Parameters][]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [Troubleshooting][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogDatabases/LogDatabases_CreateManually.gif

[Add or manage a Log Database]:https://docs.nodinite.com/administration/settings/log-databases/add-or-manage-log-database/
[Add or manage a Log Database - Archive Database]:https://docs.nodinite.com/administration/settings/log-databases/add-or-manage-log-database/#archive-database
[AlwaysOn]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/always-on-availability-groups/
[ConfigDB]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[DaysToSplitDatabaseOn]:https://docs.nodinite.com/administration/settings/system-parameters/daystosplitdatabaseon/
[Environment]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/01-basics/#register-the-environment-in-the-portal
[EnvironmentName]:https://docs.nodinite.com/administration/settings/system-parameters/environmentname/
[How a new Log Database is created]:https://docs.nodinite.com/core-services/log-databases/overview/#how-a-new-log-database-is-created
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[LogAccessRoles]:https://docs.nodinite.com/administration/settings/system-parameters/logaccessroles/
[LogDatabaseName]:https://docs.nodinite.com/administration/settings/system-parameters/logdatabasename/
[LogDatabaseRecovery]:https://docs.nodinite.com/administration/settings/system-parameters/logdatabaserecovery/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[LogLocations]:https://docs.nodinite.com/administration/settings/system-parameters/loglocations/
[LogServiceUsers]:https://docs.nodinite.com/administration/settings/system-parameters/logserviceusers/
[Prerequisites]:https://docs.nodinite.com/core-services/log-databases/getting-started/prerequisites/
[SizeToSplitDatabaseOn]:https://docs.nodinite.com/administration/settings/system-parameters/sizetosplitdatabaseon/
[SQL Server Sysadmin Requirements]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-sysadmin-requirements/
[SqlPackageExecutable]:https://docs.nodinite.com/administration/settings/system-parameters/sqlpackageexecutable/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Troubleshooting]:https://docs.nodinite.com/core-services/log-databases/troubleshooting/overview/
[Update Log Database]:https://docs.nodinite.com/administration/settings/log-databases/update-log-database/
[Web Client]:https://docs.nodinite.com/getting-started/overview/