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 : Connect to Quickbooks 2009 via QODBC in an asp scriptSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Connect to Quickbooks 2009 via QODBC in an asp script 
 Author   Message 
  Mark Lacefield 
  
 Group: Members 
 Posts: 1 
 Joined: 2009-02-04 
 Profile
 Posted : 2009-02-04 06:31:26

I installed the QODBC per instructions and am able to query customer names through your included VB test tool.  However, when I try to access the same quickbooks file via my asp script, the browser window just sits there.

Here is my code:

Dim rs, strSQL

'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")

'Set an active connection to the Connection object using DSN connection
adoCon.Open "Driver={QODBC Driver for QuickBooks};DFQ=\\servername\MainStorage\Functional_Dept\Accounting\QBooks\QBData\Quickbook.qbw;OpenMode=M;OLE DB Services=-2;"

strSQL = "SELECT * FROM Customer"

rs.Open strSQL, adoCon

do while Not rs.eof

Response.Write (rs("Name")) & "<br>"

rs.MoveNext
loop


'Reset server objects
rs.Close
adoCon.Close
Set rs = Nothing
Set adoCon = Nothing
 

The IIS service and quickbooks datafile are on the same server.  The server is running Server2003.  Trying to run the asp script from a different workstation.  I get no syntax errors...the screen just "hangs".

Suggestions?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-02-04 10:26:21

See: How can I see QuickBooks data in a Internet Explorer Browser using Windows XP? and How do I manually setup the QODBC DCOM Servers on Windows XP Pro and Windows 2003 Server? 

And the DFQ needs to be the drive and folder as it appears on the server itself, not a remote UNC path.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to