QuickBooks Error -6098, 5 -- Resolving Database Server Hosting Conflicts
Error -6098, 5 blocks multi-user access when the database server finds the file open with incompatible hosting settings; our engineers walk through resolution.
When a QuickBooks Desktop company file is opened in multi-user mode, the QuickBooks Database Server Manager must have exclusive control over how the file is hosted on the server. Error -6098, 5 occurs when that server-side database engine detects a hosting conflict — the file is already locked or open under a hosting configuration that conflicts with the current request. Our engineers have resolved this error across single-machine, peer-to-peer, and dedicated server environments, and the fix is almost always a matter of correcting hosting settings or clearing a stale lock.
What the Error Message Says
The full message typically reads:
Warning: QuickBooks is attempting to open this company file: [path\filename.qbw]. Before you can open the company file on your computer, you must first open the company file on the computer where the company file is located. (-6098, 5)
In some configurations the message appears alongside a secondary prompt about database server restrictions or a recommendation to switch to single-user mode.
What the Code Means
The -6098, 5 code is a compound error. The -6098 component signals that the database server manager cannot grant access to the file because it has been opened or hosted in a way that prevents the requested connection type. The secondary 5 indicates a permission or access-level mismatch at the database engine layer — the server process is running, but it cannot reconcile the file's current hosting state with the incoming request.
What Triggers It
The most common triggers, in order of frequency our engineers see:
- Hosting is enabled on a workstation instead of only on the server. When a workstation has hosting turned on, it attempts to act as a database server, creating a conflict with the actual server.
- The
.ND(Network Descriptor) file is corrupted or stale. This file tells QuickBooks where the database server is. If it points to the wrong machine or contains outdated entries, the connection fails. - A previous QuickBooks session crashed, leaving behind a
.tlg(transaction log) lock or a.qbw.ndlock file that prevents a clean reopen. - Multiple Database Server Manager instances are running after an upgrade or reinstall, and the older service is holding the file open.
- Windows folder permissions on the server do not grant full control to the
QBDataServiceUseraccount.
How to Fix It
Scenario 1: Hosting Enabled on a Workstation (Most Common)
- On every workstation that accesses the file, open QuickBooks and press
F2to open the Product Information window. - Look at the Hosting field near the center of the screen. It should read
Hosting: Offon all workstations. - If any workstation shows
Hosting: On, go to File > Utilities. If you see Stop Hosting Multi-User Access, select it. Confirm the change and restart the workstation when prompted. - On the server machine, press
F2and confirm it readsHosting: On. If it does not, go to File > Utilities > Host Multi-User Access and confirm. - Open the company file from the server first, then have each workstation open it.
Scenario 2: Corrupted or Stale .ND File
- Close QuickBooks on all machines.
- On the server, navigate to the folder containing the company file.
- Locate the file ending in
.NDwith the same base name as the company file (for example,CompanyFile.qbw.nd). - Right-click the
.NDfile and rename it toCompanyFile.qbw.nd.OLD. - Open the QuickBooks Database Server Manager on the server (Start menu > QuickBooks > QuickBooks Database Server Manager).
- Click Start Scan and point it at the folder containing the company file. This regenerates a fresh
.NDfile. - After the scan completes, open the company file from the server, then from each workstation.
Scenario 3: Leftover Lock Files After a Crash
- Close QuickBooks on all machines.
- On the server, navigate to the company file folder.
- Look for any
.lckfiles or files with the same base name ending in.tlg.lck. Rename them with a.OLDextension or delete them. - Do not delete the
.tlgfile itself — only.lcklock files. - Restart the server, then reopen the company file.
Scenario 4: Multiple Database Server Manager Versions
- Open Control Panel > Programs and Features on the server.
- Look for multiple entries of QuickBooks Database Server Manager across different years.
- Uninstall any versions older than the QuickBooks Desktop version currently in use.
- Reboot the server.
- Run the Database Server Manager scan again on the company file folder.
Scenario 5: Windows Folder Permissions
- On the server, right-click the folder containing the company file and select Properties > Security.
- Click Edit and ensure the
QBDataServiceUseraccount (the exact name includes the QuickBooks version year) has Full Control. - Apply the changes and have each user attempt to open the file again.
How to Prevent It Recurring
Our engineers recommend standardizing on a dedicated server or hosting machine as the single point of entry for the company file. After any QuickBooks update or upgrade, run the Database Server Manager scan before users reconnect. Avoid opening the company file directly from a mapped drive letter if a UNC path (\\ServerName\ShareName) is available, as mapped drives can reconnect with different credentials after a reboot and trigger hosting mismatches. Finally, if a workstation crashes while QuickBooks is open, have that user wait sixty seconds before attempting to reopen the file — the database engine needs time to release its locks cleanly.