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 : QBODBC 8, QB PRO 2008, PHP, IIS, DCOM problems and hang issueSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 QBODBC 8, QB PRO 2008, PHP, IIS, DCOM problems and hang issue 
 Author   Message 
  Veress Albert 
  
 Group: Members 
 Posts: 1 
 Joined: 2008-02-14 
 Profile
 Posted : 2008-02-14 02:21:43
Greetings!

I am a developer used to php+mysql. One of my clients needs to pull data from QuickBooks, so he downloaded the Server Edition qbODBC, and installed it on a Win2k3 Server along with the QB application.
I am not familiar with windows platforms (IIS), nor QuickBooks.

The first of our problems is this:
If I set the driver to use DCOM server, the VBdemo can connect to QB, but the php script just hangs in an infinite "loading". I have tried different kind of security settings described in the manual and in the forums, but just can't get it to work. I have also downloaded the qbcust.asp script, but that hangs in this loading too after the first 3 lines are displayed.

I could get it work, however with the Remote Connector (iBiz and qbODBC running on the same machine on http://localhost:2080). So this way i can access QB from php, but I still have the second (and the bigger) problem:

I can access the Customer table, but when i try to pull data from the Invoice table, the infinite loading happens again. It doesn't act always the same way. Here are some examples:

SELECT COUNT (*) FROM Customer - returns the result in a reasonable time
SELECT COUNT (*) FROM Invoice - One time it returned the result, other times it hangs

SELECT TOP 10 * FROM Customer - returns
SELECT TOP 10 * FROM Invoice - hangs

SELECT Txn FROM Invoice - usually hangs
SELECT * FROM Invoice WHERE CustomerRefListID ='2FD0000-1187271955' - hangs

Here is a line from SDK Messages, which keeps repeating when i try to access Invoice table with Remote Connection:
20080213.095907    E    5548    InvoiceStorage::BuildInvoiceLine    This feature is not enabled or not available in this version of QuickBooks. HRESULT=0x80040527

Message from QBODBC:
2008-02-13 09:53:31 QODBC Ver:  8.00.00.240 *********************************************************************************************************************
IsAService: False
SQLOptimize_OpenOptimizeDBHandle Company Name or Optimizer Version do not match:

These errors happen in VBDemo too for these queries. It hangs too.

Once i tried to start everything over, use DCOM server, and from VBDemo i got the results from the Invoice table as needed, everything seemed to work fine (but i can't access it from php).
On other occasions this doesn't work neither, VBDemo hangs or freezes. The "InvoiceStorage::BuildInvoiceLine    This feature is not enabled or not available in this version of QuickBooks. HRESULT=0x80040527" message appears in the SDK log.


QB is QuickBooks Pro 2008, and i think that the driver is still Evaluation version.

I was thinking of maybe reinstalling everything and try it with Apache...(but i know it's not much hope in that)

Thank You
Veress Albert 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-02-14 09:00:31

The QODBC Remote Connector and the iBiz Remote Connector are only mean't to be used with desktop applications. For example, that Excell user that doesn't have QuickBooks on their workstation. When it comes to anything that runs as, or through, a Windows Service, the QODBC Server Edition and QODBC DCOMs must be used and run against QuickBooks on the server itself. The company (.qbw) file can be on another server via a network or even VPN mapped drive if need be. 

Most users tend to use queries like:

SELECT * from Customer

which will run slowly as QODBC has to display the correct current balance for each customer, while this will run much faster:

SELECT "Name","LastName","FirstName","BillAddressAddr1",
"BillAddressAddr2","BillAddressCity",
"BillAddressState","BillAddressPostalcode"
from Customer

However 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-01-31'}

Or you can resync your optimized InvoiceLine table by first doing:

sp_optimizefullsync InvoiceLine

then read directly out of the optimized table by doing:

select * from InvoiceLine NOSYNC WHERE Txndate > {d '2008-01-31'}

This is very f...a.......s.................t.

Another good example of using NOSYNC would be to get for example all historical invoicelines before 2003:

SELECT * from InvoiceLine NOSYNC WHERE Txndate < {d '2004-01-01'}

as invocies before 2004 don't ever change, you can read them directly from the QODBC Optimizer. You just need to use unoptimized for crtical operations like Sales Commisions etc.

As far as running QODBC with a web browser is concerned, see: How can I see QuickBooks data in a Internet Explorer Browser using Windows XP?  for the setup info behind using QODBC via IIS. Most issues have to do with security setup. What type of security have you setup on the server? There can be all sort of permissions issues with IIS using AUTHENTICATED USERS. Sometimes the *shotgun* approach of giving everything that has the words QODBC in it is the only way....

See the last post in: Permissions Issue with IIS using AUTHENTICATED USERS 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to