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 : ASP page hangs when trying to open connection (ADO and classic ASP)Search Forum

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

 New Topic 
 
 Post Reply 
[1]  
 ASP page hangs when trying to open connection (ADO and classic ASP) 
 Author   Message 
  Ken 
  
 Group: Members 
 Posts: 1 
 Joined: 2008-03-20 
 Profile
 Posted : 2008-03-20 05:45:07
Hi folks,

I'm currently evaluating QODBC to enable integration with a website shopping cart database.

I have the drivers installed on an XP Pro machine, fully patched and running IIS.

Via DCOMCNFG, I modified the qbXMLRP2eQODBCInteractive and qbXMLRPeQODBCInteractive DCOM components for Launch and Activate and Access, adding IUSR, INTERACTIVE and ASPNET accounts, with full permissions.

I created a test QB file, called C:\QB_test\Test.QBW, renamed the default QODBC System DNS to QBData, pointed it to the QBW file, configured the QuickBooks file (as admin) to allow the QODBC application to read and modify, and login automatically.

I added a single invoice, then ran the connection test. The test works, and the sample VB application returns the invoice record.

Next I created a test virtual directory with a single ASP page with the following script block. The page hangs on the ADO connection.open call, no matter how I modify the connection string. I've tried dozens of different connection strings, without success.

Does the file need to be open in quickbooks in order to connect? Can another QB file be open while I'm connecting to another?

I'd appreciate any assistance  you could provide.

<%
dim cnn
Dim rs
dim sSQL

set cnn = Server.CreateObject("ADODB.connection")
Response.Write "cnn created"
set rs = Server.CreateObject("ADODB.Recordset")
Response.Write "rs created"

cnn.ConnectionString = "Driver={QODBC Driver for QuickBooks};DFQ=C:\QB_test\Test.QBW;OpenMode=M;OLE DB Services=-2;"
Response.Write "CONNECTION STRING SET"
cnn.Open

stSQL = "SELECT * from Employee"
Set rs = cnn.Execute(stSQL)

Do While (not rs.EOF)
    For i = 0 to 5
        Response.Write "Field " & i & ": " & rs.Fields(i).Value & "<BR>"
        rs.MoveNext
    Next
Loop

rs.Close
Set rs = Nothing
cnn.Close
Set cnn = Nothing
cnn.Open
%>

Thanks in advance.

Ken Prock
IT Manager
Virtual Graffiti, Inc.
9979 Muirlands Blvd.
Irvine, CA 92618 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-03-26 12:22:49

QuickBooks can only have one company file open at the one point of time. Each company file needs to be configured for unattended mode access as per: How do I setup QODBC to auto-login into QuickBooks and start it if it's not running? 

See also: How can I see QuickBooks data in a Internet Explorer Browser using Windows XP? 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to