Just use:
SELECT * FROM Customer CALLDIRECT WHERE IsActive = 1 and FirstName = 'FirstName' and LastName = 'LastName'
instead.You can also override your QODBC Optimizer configuration screen settings to suit what you are actually doing by using the following tags:
VERIFIED | VERIFY - Forces Full Resync with QuickBooks on the optimized table before Query starts CALLDIRECT | UNOPTIMIZED - Passthru query directly to QuickBooks - use no optimizations OPTIMIZE | OPTIMIZED | NOSYNC - Passthru query to optimized table directly for maximum speed
Examples:
select * from InvoiceLine UNOPTIMIZED select * from InvoiceLine NOSYNC select * from InvoiceLine VERIFIED
For example, to read new (recent) InvoiceLines directly out of QuickBooks use:
select * from InvoiceLine UNOPTIMIZED WHERE Txndate > {d '2008-04-01'} |