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 : MS SQL Server Linked Server Not Working - VBDemo Works FineSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 MS SQL Server Linked Server Not Working - VBDemo Works Fine 
 Author   Message 
  Dan1 
  
 Group: Members 
 Posts: 5 
 Joined: 2008-01-18 
 Profile
 Posted : 2008-02-06 03:43:36
So I can connect to quickbooks using VBDemo.  I can run queries that I want.

I started the DCOM server following the instructions on the page. Also I can see a Quickbooks ODBC connection when I click on Configure ODBC connection. The test connection works fine.

When I try creating a linked server from the tutorial it fails. None of the tables show up and I get an error  -- "Quickbooks could not be started"

I have tried everything but nothing seems to work. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-02-06 07:48:01
Please see: Does QODBC work with MS SQL Server 2005 Linked Tables?  

  Top 
  Dan1 
  
 Group: Members 
 Posts: 5 
 Joined: 2008-01-18 
 Profile
 Posted : 2008-02-06 07:49:57
To clarify I am using SQL 2000 . NOT 20005.

And SQL Server and Quickbooks and QODBC are installed on the same physical machine. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-02-06 12:34:00
Then see: Does QODBC work with MS SQL Server Linked Tables?  

  Top 
  Dan1 
  
 Group: Members 
 Posts: 5 
 Joined: 2008-01-18 
 Profile
 Posted : 2008-02-07 02:09:11
Ok I got it to work. I can see all the tables as a linked table.

Now when I run a query in query analyzer this what I get. I ran everything on the master DATABASE in sql.

All the example queries give me this error.

Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' reported an error. 
[OLE/DB provider returned message: [QODBC] Error]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IRowset::GetNextRows returned 0x80004005:   ].

Thanks for all the help. How do I run queries of a linked server? 

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

Assuming QODBC is the name of the linked server, try:

SELECT ListID, Name FROM QODBC...Customer

which is the same as running:

SELECT ListID, Name FROM Customer

using VB Demo.

 

  Top 
  Dan1 
  
 Group: Members 
 Posts: 5 
 Joined: 2008-01-18 
 Profile
 Posted : 2008-02-08 01:11:32
Great! Now I can get this to work.

SELECT * FROM QODBC...Customer

I see all the column names now ..BUT NO DATA!!  It returns 0 rows.

In my VB DEMO query same query returns 1300 rows.

Whats going on? Thanks Tom for all the help. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-02-08 07:48:59
See: MS SQL Server 2000 Linked Server issue using the QODBC optimizer   

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to