Windows Service
Running Syntra ODBC as a Windows service ensures it starts automatically on boot and runs in the background without requiring a user to be logged in.
Installing the Service
Section titled “Installing the Service”The Syntra installer can register the Windows service automatically. If you need to install it manually:
sc.exe create SyntraODBC binPath= "C:\Program Files\SyntraODBC\syntra-server.exe --service" start= auto displayname= "Syntra ODBC Server"sc.exe description SyntraODBC "Syntra ODBC - QuickBooks Desktop ODBC Driver"Starting and Stopping
Section titled “Starting and Stopping”Using Services Manager (GUI)
Section titled “Using Services Manager (GUI)”- Press
Win + R, typeservices.msc, and press Enter. - Find Syntra ODBC Server in the list.
- Right-click to Start, Stop, or Restart.
Using Command Line
Section titled “Using Command Line”# Start the servicenet start SyntraODBC
# Stop the servicenet stop SyntraODBC
# Restart the servicenet stop SyntraODBC && net start SyntraODBCUsing PowerShell
Section titled “Using PowerShell”Start-Service SyntraODBCStop-Service SyntraODBCRestart-Service SyntraODBCGet-Service SyntraODBC | Select-Object Status, StartTypeService Account
Section titled “Service Account”By default, the service runs as Local System. For QuickBooks integration, the service account needs:
- Access to QuickBooks: The service account must be authorized in QuickBooks Desktop. QuickBooks authorization is tied to the Windows user, so you may need to configure the service to run as a specific user account.
- Access to the company file: The account must have read access to the QuickBooks company file (
.QBW).
Changing the Service Account
Section titled “Changing the Service Account”- Open
services.msc. - Double-click Syntra ODBC Server.
- Go to the Log On tab.
- Select This account and enter the credentials of the Windows user authorized in QuickBooks.
- Click Apply, then restart the service.
Startup Type
Section titled “Startup Type”| Type | Behavior |
|---|---|
| Automatic | Starts when Windows boots (recommended) |
| Automatic (Delayed Start) | Starts after other services finish loading |
| Manual | Must be started manually |
| Disabled | Cannot be started |
Set the startup type:
sc.exe config SyntraODBC start= delayed-autoQuickBooks Desktop Considerations
Section titled “QuickBooks Desktop Considerations”QuickBooks Desktop must be running with the company file open for write operations and QBFC live fetches. For the service to work unattended:
- Configure QuickBooks to run in multi-user mode.
- Set QuickBooks to allow access for the Syntra application (under Edit > Preferences > Integrated Applications).
- Ensure the company file opens automatically when the QuickBooks user logs in, or use the local cache for read-only access when QuickBooks is closed.
Service logs are written to:
C:\ProgramData\SyntraODBC\logs\syntra.logLog rotation is automatic. Check these logs if the service fails to start or behaves unexpectedly.
Recovery Options
Section titled “Recovery Options”Configure automatic restart on failure:
- Open
services.msc. - Double-click Syntra ODBC Server.
- Go to the Recovery tab.
- Set First failure, Second failure, and Subsequent failures to Restart the Service.
- Set Reset fail count after to
1day. - Set Restart service after to
60seconds.
Or via command line:
sc.exe failure SyntraODBC reset= 86400 actions= restart/60000/restart/60000/restart/60000Uninstalling the Service
Section titled “Uninstalling the Service”net stop SyntraODBCsc.exe delete SyntraODBC