[QODBC-Desktop] - Accessing Payroll Data in QODBC: Available Tables, SP_reports, and SDK Limitations
Problem Description:
Users attempting to extract payroll data (paychecks, liabilities, earnings, tax deposits) from QuickBooks Desktop via QODBC will find that direct SDK tables for payroll transactions do not exist. The standard JournalEntry table does not include detailed payroll line items because the QuickBooks SDK does not expose payroll transaction details as a queryable ODBC table.
However, QODBC provides a set of Special Procedure Reports (SP_reports) that return comprehensive payroll data - including earnings, liabilities, tax withholdings, and employee summaries - that are not available through standard SDK tables.
Affected products: QODBC Desktop, QuickBooks Desktop Expected outcome: Users can access payroll data through QODBC's SP_reports rather than standard SDK tables. For full payroll detail, use PayrollTransactionDetail, EmployeeEarningsSummary, and related reports.
Symptoms:
- A query on the
JournalEntry table returns no payroll-related journal lines, or only generic entries without earnings/liability detail.
- Attempting to query a table like
PayCheck, PayrollLiability, or similar directly in QODBC returns "Table not found" or "Invalid object name" errors.
- The customer expects detailed payroll breakdowns (federal tax, state tax, Social Security, Medicare, benefits deductions) from a single query but finds only summary-level data available through standard SDK tables.
- Attempting to join payroll fields with the
Employee table in standard SQL fails because payroll-specific fields are not exposed via the QuickBooks SDK for those tables.
Cause:
The QuickBooks SDK (the underlying API QODBC uses to communicate with QuickBooks Desktop) does not expose detailed payroll transaction data as standard queryable tables. This is a QuickBooks SDK limitation, not a QODBC bug.
QODBC works within the constraints of what the SDK provides. Where the SDK does not expose a table, QODBC cannot query it directly. However, Flexquarters has added special procedure reports (SP_reports) to QODBC that return detailed payroll data through non-standard SQL interfaces.
Environment:
| Product | Version / Detail |
| QODBC Desktop |
All versions (SP_reports available) |
| QuickBooks Desktop |
All editions with Payroll enabled (Enterprise, Pro, Premier) |
| QuickBooks Online |
Plus, Advanced plans (payroll may require separate subscription) |
Solution:
To access payroll data through QODBC, use the available SP_reports or the tables that the SDK does expose. See the lists below.
Tables Available Through the QuickBooks SDK
The following tables contain some payroll-related information but are not full payroll transaction details:
Employee - Basic employee information (Name, Address, SSN masked)
EmployeeAddtionalNote - Additional notes stored for each employee
EmployeeEarning - Employee earning setup (Rates, RatePercent)
WorkersCompCode - Workers' compensation codes
WorkersCompCodeRateHistory - Historical workers' comp rates per employee
TimeTracking - Time entry data (can be used with payroll if time tracking feeds into paychecks)
Available SP_reports for Payroll Data
QODBC provides the following special reports for detailed payroll information:
| SP_report Name | Description |
PayrollItemDetail |
Details of all payroll items used in transactions (earnings, liabilities, deductions, taxes) |
PayrollLiabilityBalances |
Current liability balances for each payroll tax/liability item |
PayrollReviewDetail |
Detailed review of all payroll transactions processed in the selected period |
PayrollSummary |
Summary totals for payroll (gross pay, total taxes, net pay) by pay period |
PayrollTransactionDetail |
Full detail of each payroll transaction including all earnings and deductions per employee |
PayrollTransactionsByPayee |
Payroll transactions grouped by payee (employee or liability account) |
EmployeeEarningsSummary |
Total earnings by employee across all pay periods in the selected range |
EmployeeStateTaxesDetail |
State tax withholdings detail per employee |
Accessing Payroll Data - Steps
- Determine the type of payroll data needed. Refer to the table above to identify which SP_report matches your requirement.
- Query the appropriate report using the QODBC Test Tool. For example:
sp_report PayrollTransactionDetail
or
sp_report EmployeeEarningsSummary Parameters DateMacro = 'ThisQuarter'
- Filter by date range where applicable. Most SP_reports support the standard
TxnDate filter for time-range queries.
- If you need additional payroll fields or reports not listed above, contact Intuit to request the feature be added to the QuickBooks SDK (which would then be exposed through QODBC).
Request a Feature from Intuit
SQL Examples:
List all payroll transactions in a quarter:
sp_report PayrollTransactionDetail Parameters DateMacro = 'ThisYear'
List total employee earnings for the year:
SELECT Distinct Name, SSN, JobTitle FROM EmployeeEarning
List current liability balances:
sp_report PayrollLiabilityBalances
Example Scenarios:
Scenario 1 - Monthly payroll reconciliation:
An accountant needs to reconcile payroll expenses each month. They query EmployeeEarningsSummary for gross earnings per employee and PayrollLiabilityBalances for tax obligations, then cross-reference with their accounting system's general ledger entries.
Scenario 2 - Year-to-date earnings report:
An HR manager needs YTD earnings for all employees. They query EmployeeEarningsSummary with a date range from January 1 to the current date, producing a comprehensive report of gross pay, taxable wages, and deductions.
Additional Notes:
- No direct PayCheck table: There is no QODBC table named
PayCheck. Use PayrollTransactionDetail or PayrollReviewDetail instead.
- SDK limitation, not a bug: The absence of direct payroll SDK tables is a QuickBooks SDK constraint. QODBC faithfully exposes what the SDK provides plus the SP_reports Flexquarters has added.
- SP_reports availability: Not all SP_reports may be available in all QODBC editions. If a report returns "table not found," it may not be supported in your version. Contact support for edition-specific details.
- Date range filtering: Most SP_reports accept the standard
TxnDate filter. Use inclusive date ranges (>= start AND <= end) to avoid missing boundary records.
- Full table list: See QODBC Table List and QODBC Reports for the complete reference.
Related Articles:
Troubleshooting: Slow Performance / Cannot Get Full Records from QuickBooks How to Remove the Optimizer File (QODBC Desktop) Using QODBC with MS Access - Re-linking Tables Understanding QODBC Error Codes
Keywords:
Payroll Data SP_reports PayrollTransactionDetail EmployeeEarningsSummary PayrollLiabilityBalances QuickBooks SDK Limitation No PayCheck Table JournalEntry Payroll Reconciliation YTD Earnings Tax Withholdings EmployeeEarning WorkersCompCode Payroll Summary PayrollReviewDetail
Support Tickets: TQN-820-38803
|