Actually there's no such thing as the transaction table in QuickBooks, we have simply renamed an audit report. This also means that if a transaction is modified yesterday, today and tomorrow you will get three instances of the one transaction. For this reason we always use sp_report CustomTxnDetail instead. Again, this report can take a long time depending on the amount of transaction rows that will be returned. You should always break the report into smaller chunks, for example year by year chunks like this instead:
sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class parameters DateFrom = {d'2005-01-01'}, DateTo = {d'2005-12-31'}, SummarizeRowsBy = 'Account'
sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class parameters DateFrom = {d'2006-01-01'}, DateTo = {d'2006-12-31'}, SummarizeRowsBy = 'Account'
sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class parameters DateFrom = {d'2007-01-01'}, DateTo = {d'2007-12-31'}, SummarizeRowsBy = 'Account'
sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class parameters DateFrom = {d'2008-01-01'}, DateTo = {d'2008-12-31'}, SummarizeRowsBy = 'Account'
and if you're interested in just one account do:
sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class parameters DateFrom = {d'2008-01-01'}, DateTo = {d'2008-12-31'}, SummarizeRowsBy = 'Account' where Account = 'AccountName' |