Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : How do I run a SP_REPORT Command?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Reporting Forum

 New Topic 
 
 Post Reply 
[1]  
 How do I run a SP_REPORT Command? 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-02-22 12:24:12

The SQL stored procedure statement "sp_report" can be used like any other SQL statement. If your development system has a Pass-Through option, then that is what you would use.

In the VB Demo program just paste the SQL statement in and press the "Query" button.

Use the interactive QuickBooks Visual Field Explorer to view the report you require by clicking on the following link:

http://www.qodbc.com.au/helpdesk.asp?target=sales_by_item_detail&sp_report_name_id=26

In Access start a new Query Design. Do not select any tables. Then change the mode to SQL Pass-Through. You do this by selecting the menu Query->SQL Specific->Pass-Through. I've been slowly building up the range of QuickBooks reports available in a range of reports found if you search for: "How do I run a".

Stored Procedure reports (sp_reports) can also be used by Microsoft Excel to bring any number of QuickBooks reports directly into a spreadsheet by using Microsoft Query (shown in this example doing a Balance Sheet Summary report).

 

There is a different FAQ if you need to use it with a SQL Linked Server.

Here is a sample SalesByItemDetail report:

sp_report SalesByItemDetail show TxnType_Title, Date_Title, RefNumber_Title, Memo_Title, Name_Title, Quantity_Title, UnitPrice_Title, Amount_Title, RunningBalance_Title, Text, Blank, TxnType, Date, RefNumber, Memo, Name, Quantity, UnitPrice, Amount, RunningBalance parameters DateMacro = 'ThisMonthToDate'

See: How do I use the QuickBooks Reporting Engine with QODBC? I've heard something about sp_report ? for more examples.

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-07-28 08:16:02

With the release of QODBC v6.00.00.176 (or later) you can now use the new stored procedure SP_REPORTS to list all the available sp_reports.

And see all the columns available in a given SP_REPORT by using sp_reportcolumns reportname

As well as SP_PARAMETERS to list all the parameters available for a given SP_REPORT. The VALUES column lists available values that can be used with the parameter.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to