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
|
|
[QODBC] QB Open Connection Failed. Error = 80040402 |
Author |
Message |
|
Posted : 2008-12-02 04:40:19 |
Hi,
I am trying to connect my vb.net application to QuickBooks using the QODBC driver, using the followng code:
-------------------------------------------------------------------------------------------------
Dim cnQODBC As System.Data.Odbc.OdbcConnection Dim daQODBC As System.Data.Odbc.OdbcDataAdapter Dim dsQODBC As System.Data.DataSet
cnQODBC = New System.Data.Odbc.OdbcConnection("Dsn=QB_DB;") cnQODBC.Open()
daQODBC = New System.Data.Odbc.OdbcDataAdapter("SELECT AccountNumber, FullName, CompanyName FROM Customer", cnQODBC)
dsQODBC = New System.Data.DataSet
daQODBC.Fill(dsQODBC)
DataGridView1.DataSource = dsQODBC
-------------------------------------------------------------------------------------------------
The DSN connection works fine with the vb demo application, but when I run this code in Visual Studio, it breaks at cnQODBC.Open() with the error:
"ERROR [00000] [QODBC] QB Open Connection Failed. Error = 80040402, Exception in OpenConnection: An existing connection was forcibly closed by the remote host ERROR [00000] [QODBC] QB Open Connection Failed. Error = 80040402, Exception in OpenConnection: An existing connection was forcibly closed by the remote host"
Thanks for your help!
Lori
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-12-03 16:04:43 |
|
|
|
|