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

## :fa-info-circle: 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.  

>[!TIP]
>For standard deployments, let the Logging Service create Log Databases. Manual creation means you also own the timing: when the online Log Database reaches [SizeToSplitDatabaseOn][] or [DaysToSplitDatabaseOn][] and no new database can be created, logging is affected.

## :fa-list-ol: 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: :Nodinite: 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].

## :fa-hand-point-right: Next Steps

* :fa-database: [Add or manage a Log Database][]  
* :fa-book: [Update Log Database][]  
* :fa-database: [Log Database Overview][Log Databases]  

## :fa-link-horizontal: Related Topics

* :fa-box-full: [Core Services Overview][Core Services]  
* :fa-database: [Configuration Database][ConfigDB]  
* :fa-hard-drive: [Logging Service][]  
* :fa-tag: [Environment][]  
* :fa-sliders: [System Parameters][]  
* :fa-wrench: [Troubleshooting][]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogDatabases/LogDatabases_CreateManually.gif

[Add or manage a Log Database]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Add%20or%20manage%20Log%20Database.md
[Add or manage a Log Database - Archive Database]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Add%20or%20manage%20Log%20Database.md#archive-database
[AlwaysOn]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Always%20On%20Availability%20Groups.md
[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[DaysToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToSplitDatabaseOn.md
[Environment]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/01%20-%20Basics.md#register-the-environment-in-the-portal
[EnvironmentName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/EnvironmentName.md
[How a new Log Database is created]:{ndr}/Core%20Services/Log%20Databases/Overview.md#how-a-new-log-database-is-created
[Linked Servers]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Servers.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[LogAccessRoles]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogAccessRoles.md
[LogDatabaseName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseName.md
[LogDatabaseRecovery]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseRecovery.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogLocations]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogLocations.md
[LogServiceUsers]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogServiceUsers.md
[Prerequisites]:{ndr}/Core%20Services/Log%20Databases/Getting%20started/1.%20Prerequisites.md
[SizeToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SizeToSplitDatabaseOn.md
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[SqlPackageExecutable]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SqlPackageExecutable.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Troubleshooting]:{ndr}/Core%20Services/Log%20Databases/Troubleshooting/Overview.md
[Update Log Database]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Update%20Log%20Database.md
[Web Client]:{ndr}/Getting%20Started/Overview.md