Knowledgebase
[QODBC-Desktop] - Accessing Audit Trail Data in QODBC via sp_report (No Direct SDK Table)
Posted by William - QODBC Support on 07 October 2026 08:34 AM

[QODBC-Desktop] - Accessing Audit Trail Data in QODBC via sp_report (No Direct SDK Table)

Problem Description:

Users attempting to extract Audit Trail data (who created/modified records and when) from QuickBooks via QODBC will find that no direct SDK table named "AuditTrail" exists. Unlike standard transaction tables, the QuickBooks SDK does not expose audit trail information as a queryable ODBC table.

However, QODBC provides the AuditTrail SP_report that returns comprehensive audit trail data - including user names, dates, and the specific actions taken on each record.

Affected products: QODBC Desktop
Expected outcome: Users can access full audit trail data through QODBC's AuditTrail report (available as both a standard table query and an SP_report). For detailed field-level change tracking across all QuickBooks objects, use the PayrollTransactionDetail and related special reports instead.

Symptoms:

  • A query on a table named AuditTrail, Audit_Trail, or similar returns "Table not found" or "Invalid object name."
  • The customer expects full audit trail detail (who changed what, when) from a single query but finds only summary-level change tracking available through standard SDK tables.
  • Attempting to find audit trail fields within the Invoice, Customer, or other transaction tables - these tables include basic metadata (DateCreated, DateModified) but not detailed field-by-field audit trails.

Cause:

The QuickBooks SDK does not expose detailed audit trail data as a standard queryable table. The audit trail in QuickBooks Desktop is a per-company-file preference feature, and the SDK provides limited access to it compared to transaction data.

QODBC works within the constraints of what the SDK provides. For comprehensive audit trail reporting, QODBC includes the AuditTrail SP_report, which wraps the SDK's audit trail functionality into a queryable interface.

Environment:

ProductVersion / Detail
QODBC Desktop All versions (AuditTrail SP_report available)
QuickBooks Desktop All editions with Audit Trail enabled (File → Preferences → Changes → My Preferences)

 

Solution:

To access audit trail data through QODBC, use the AuditTrail report. Follow the steps below.

Available Audit Trail Fields

The AuditTrail report includes the following fields:

FieldDescription
Date Date of the transaction
Account Account Name
Name User who performed the action
Credit Credit amount
Debit Debit amount
ReportBasis Accrual, Cash
RefNumber Reference number of the affected record 

Accessing Audit Trail Data - Steps

  • Ensure Audit Trail is enabled in QuickBooks. (for Legacy versions of QuickBooks Desktop (QuickBooks 2005 and older))

    Navigate to: File → Preferences → Changes → My Preferences. Make sure "Keep an audit trail of all changes" is checked. Without this preference, no audit data will be recorded.

  • Query the AuditTrail report using the QODBC Test Tool. For example:

    sp_report AuditTrail show Date, RefNumber, Name, Account, Amount, TxnType, User parameters DateMacro = 'Today'
  • Filter by Parameters to narrow results. For example:

    sp_report AuditTrail show TxnNumber_Title, TxnType_Title, ModifiedTime_Title, LastModifiedBy_Title, Date_Title, Name_Title, Memo_Title, Account_Title, SplitAccount_Title, Debit_Title, Credit_Title, Text, TxnNumber, TxnType, ModifiedTime, LastModifiedBy, Date, Name, Memo, Account, SplitAccount, Debit, Credit parameters DateFrom= {d'2026-06-01'},DateTo= {d'2026-09-30'}

  • If you need additional audit trail fields not available, 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:

Audit trail for all objects in the last quarter:

sp_report AuditTrail show Date, RefNumber, Name, Account, Amount, TxnType, User, LastModifiedBy parameters DateMacro = 'LastQuarter'

Find who last modified a specific customer:

sp_report AuditTrail show TxnNumber, TxnType, Date, Memo, Account, Debit, Credit parameters DateFrom= {d'2026-01-01'},DateTo= {d'2026-09-30'} where Name = 'William'

 

Scenario 1 - Monthly audit compliance:

An accounting firm needs to produce a monthly audit trail report for SOX compliance. They query AuditTrail with the first and last day of each month, producing a complete record of every change made to financial data in QuickBooks Desktop.

Scenario 2 - Investigating unauthorized changes:

A company notices discrepancies in their accounts receivable. They query AuditTrail filtered by ObjectType = 'Customer' and ActionType = 'Modify' for the relevant date range, identifying which user made each change and when.

Additional Notes:

  • Audit Trail must be enabled: If the QuickBooks Audit Trail preference is not checked, no data will be returned. Edit → Preferences → Accounting → Company Preferences → Check the "Use Audit Trail" box.
    (for Legacy versions of QuickBooks Desktop (QuickBooks 2005 and older))
  • Not all actions are audited: Some automated or system-generated actions may not appear in the audit trail depending on QuickBooks version and settings.
  • Date range filtering: The AuditTrail report accepts the standard TxnDate filter. Use inclusive date ranges (>= start AND <= end) to avoid missing boundary records.
  • Full table/report list: See QODBC Table List and QODBC Reports for the complete reference.

Slow Query Performance After Upgrading QODBC How to Access Payroll Data in QODBC (SP_reports) Understanding QODBC Error Codes

Keywords:

AuditTrail Audit Trail sp_report Change Tracking Who Modified What QuickBooks SDK Limitation No AuditTrail Table SOX Compliance ActionType ListID File Preferences QODBC Reports
(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).