Knowledgebase: TroubleShooting
[QODBC-Desktop] - Accessing Multiple QuickBooks Desktop Company Files Simultaneously with QODBC and QRemote
Posted by William - QODBC Support on 13 October 2026 07:40 AM

[QODBC-Desktop] - Accessing Multiple QuickBooks Desktop Company Files Simultaneously with QODBC and QRemote

Problem Description:

Businesses that use multiple QuickBooks Desktop company files (e.g., one per country, region, or legal entity) often need to connect external applications - PHP web apps, SQL Server databases, Power BI reports, MS Access - to all of them simultaneously. However, attempting to access multiple company files through a single QODBC/QRemote installation on the same machine fails because of a fundamental QuickBooks SDK limitation.

Affected products: QODBC Desktop, QODBC QRemote, QuickBooks Desktop
Expected outcome: After understanding and working within the QuickBooks SDK one-company-per-session constraint, users can configure multi-machine or multi-session architectures to access all required company files simultaneously.

Symptoms:

  • An application connects successfully to one QuickBooks company file but fails when attempting to connect to a second file on the same machine and user session.
  • Connections drop unexpectedly when switching between company files within the same session.
  • The application intermittently loses its connection, requiring manual reconfiguration of data source names (DSN) or database connection strings.
  • QuickBooks may refuse to open a second company file from an external ODBC application while another is already connected in that user session.

Cause:

The root cause is a hard limitation of the QuickBooks SDK (the underlying API that QODBC uses to communicate with QuickBooks Desktop):

QuickBooks SDK can only connect to one company file at a time per Windows user session.

Since QODBC relies entirely on the QuickBooks SDK, and QRemote Server uses QODBC internally, this limitation is inherited by all layers:

  • A single Windows user session can open only one QuickBooks company file at a time.
  • Multiple simultaneous connections to different company files are not possible within the same user session - even if each connection uses a different DSN.
  • To switch between company files, the existing connection must be closed first, followed by a 15–45 second wait for QuickBooks to fully release the previous file.
Note

This is an inherent QuickBooks Desktop SDK limitation, not a QODBC bug. QODBC faithfully passes requests to the SDK, and the SDK enforces this one-company-per-session rule. QuickBooks Online (QBO) does not have this limitation because it uses a different API architecture.

Environment:

ProductVersion / Detail
QODBC Desktop All versions
QODBC QRemote All versions (QRemote Server uses QODBC internally)
QuickBooks Desktop All editions (Enterprise, Pro, Premier) - file-based products only
Applications PHP/Apache, IIS, MS SQL Server, Power BI, MS Access, Excel Power Query
Infrastructure Terminal Server / Remote Desktop / AWS EC2 / any Windows Server with multiple user sessions

Solution:

To access multiple QuickBooks company files simultaneously, you must use one of the following architectural approaches. Choose the one that best fits your deployment scenario.

  1. Configure Auto-Login for each QODBC DSN. Each company file requires its own dedicated DSN with Auto-Login configured so it automatically opens the correct company file.

    Open QODBC Setup → DSN configuration → enable Auto-Login → point to the specific .qbw file.

    How to Create or Configure a QODBC DSN
    Auto-Login Setup Guide
  2. Choose an architecture that separates company files into distinct Windows user sessions. See the three options below.

Option A: Multiple Machines (Recommended)

  1. Set up one machine per QuickBooks company file. Each physical or virtual Windows machine runs one instance of QuickBooks Desktop with its own company file.
  2. Install QODBC and QRemote Server on each machine. Install a full QODBC license on every machine. Configure Auto-Login to point to the local company file.
  3. Create separate QRemote DSNs from the application server. On the web/app server (PHP, SQL Server, etc.), create one QRemote 64-Bit DSN per QuickBooks machine, each pointing to a different host.

    Example configuration on the app server:
    • DNS "QREMOTE_COL" → connects to QB-Server-01 (Colombia company file)
    • DNS "QREMOTE_PERU" → connects to QB-Server-02 (Peru company file)
    • DNS "QREMOTE_CQR" → connects to QB-Server-03 (CQR company file)
  4. Query from your application. Use the appropriate QRemote DSN in your application's connection string to access each company file simultaneously.

    QODBC Remote Access Guide

Option B: Multiple Windows User Sessions on a Single Machine

  1. Create separate Windows user accounts on the same machine. Each user account represents one QuickBooks company file session. A Windows Server OS supports multiple concurrent remote desktop sessions natively.
  2. Log into each Windows session as a different user. On each session, open QuickBooks Desktop and log in to the respective company file. Configure Auto-Login for each DSN.
  3. Create separate QRemote DSNs from the application server. Each QRemote DSN must be configured to point to a specific Windows user session on the QuickBooks machine.

    How to Configure QRemote for Multiple Windows Users
  4. Query from your application. Use the appropriate QRemote DSN for each company file. Each session handles one company file independently.

Option C: Sequential Access (Non-Simultaneous)

  1. Connect to only one company file at a time within a single Windows session. If switching between company files is required, follow this procedure:
    1. Close the connection to the current company file from your application.
    2. Wait 30–45 seconds for QuickBooks to fully release the file.
    3. Open the connection to the next company file. This delay is required to ensure QuickBooks fully releases the previous file before a new one can be accessed.
  2. Use this approach only when simultaneous access is not required. Sequential access introduces latency and is not suitable for real-time multi-company applications.

QuickBooks Online Alternative

If you are using QuickBooks Online instead of QuickBooks Desktop, the one-company-per-session limitation does not apply. You can connect multiple QBO company files from the same application simultaneously using the QODBC Online driver with separate API integrations for each file.

SQL Examples:

Example - Connecting to multiple companies via QRemote in PHP (linked server syntax):

-- Colombia company file
SELECT ListID, FullName FROM OPENQUERY([QREMOTE_COL], 'SELECT * FROM Customer')
-- Peru company file
SELECT ListID, FullName FROM OPENQUERY([QREMOTE_PERU], 'SELECT * FROM Customer')
-- CQR company file
SELECT ListID, FullName FROM OPENQUERY([QREMOTE_CQR], 'SELECT * FROM Customer')

Example - Switching between company files sequentially (within same session):

-- Step 1: Close the current connection in your application.
-- Step 2: Wait 30-45 seconds.

-- Step 3: Reconnect to a different company file via Auto-Login DSN:
SELECT ListID, FullName FROM OPENQUERY([QREMOTE_COL], 'SELECT * FROM Invoice WHERE TxnDate >= {d''2026-01-01''}')

Example Scenarios:

Scenario 1 - Multi-country ERP consolidation (similar to the original support ticket):

A business manages QuickBooks Desktop files for three countries (Colombia, Peru, and CQR) hosted on a single AWS terminal server. They were attempting to connect PHP web applications to all three simultaneously using separate connection strings. The solution was to split the company files across three distinct Windows user sessions - one per session - with Auto-Login configured for each. QRemote DSNs were created from the application layer, pointing to the appropriate user session.

Scenario 2 - Power BI reporting on multi-company data:

A company uses Power BI Desktop to consolidate QuickBooks financial data from five separate files (one per region). Each region's QuickBooks file runs on its own dedicated VM with QODBC/QRemote. Power BI connects via SQL Server linked servers, querying each QRemote DSN independently for real-time consolidation.

Additional Notes:

  • Licensing: Each QuickBooks machine requires its own QODBC license.
  • QuickBooks Online does not have this limitation. If multi-company simultaneous access is a core requirement and your budget allows, consider migrating some or all company files to QuickBooks Online.
  • DNS/DSN rotation: Do not dynamically change the database name or DSN at runtime while a connection is open. Always close the connection before changing targets.
  • Web Connector alternative: For XML-based integrations (e.g., payroll, bills), Intuit's Web Connector can interact with QuickBooks Desktop but requires a different architecture and does not provide ODBC-style SQL queries.
  • Troubleshooting connection drops: If connections drop unexpectedly after configuration, verify that the QRemote Server service is running on each QuickBooks machine, and that Auto-Login is correctly configured for each DSN.

Using QuickBooks Data with MS SQL Server via QODBC and QRemote QuickBooks and Microsoft PowerBI Desktop Integration How to Use QODBC with PHP How to Create a Linked Server with MS SQL Using QODBC/QRemote (32-bit) How to Create a Linked Server with MS SQL Using QODBC/QRemote (64-bit) QRemote Performance Optimization for Large Queries

Keywords:

Multiple Company Files QuickBooks SDK Limitation One Company Per Session QRemote Multiple DSNs Auto-Login Terminal Server RDP Windows User Session Multi-Company PHP Integration SQL Server Linked Server Power BI QuickBooks Desktop QODBC DSN Connection Drop Multi-Country Data Consolidation
(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please complete the captcha below (we use this to prevent automated submissions).