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 : Mirroring linked server on a MSSQL server DatabaseSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Mirroring linked server on a MSSQL server Database 
 Author   Message 
  CDitta 
  
 Group: Members 
 Posts: 2 
 Joined: 2007-10-10 
 Profile
 Posted : 2007-10-10 05:19:50

I've installed QODBC on my company's server. I created a linked server and can pass simple queries to it. My first issue is speed. A simple query like SELECT   *   FROM LINKED_QODBC...Customer  WHERE ListID = "some list id";  Takes 12-17 seconds to run. The queries I need to run are complex and won't work on the linked server.

So, I need to be able to mirror all of my QuickBooks tables on a separate database and update that data regularly.  I’ve searched the forums for a solution, but so far have come up empty. I need to create a SSIS import/export for all tables, but QODBC is not listed in the drivers’ list box. I unfortunately don’t have the time to write all the SQL to update these tables manually and I’m concerned about the speed at which these statements would execute, if I have no other choice but to write these statements myself.  If someone would be so kind as to point to a faster solution I would greatly appreciate it.

Thanks,

Chris

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-10 08:54:33

Try running:

SELECT * FROM OPENQUERY(LINKED_QODBC, 'SELECT ListID, Name FROM Customer WHERE ListID = "some list id"')

instead.

 

  Top 
  CDitta 
  
 Group: Members 
 Posts: 2 
 Joined: 2007-10-10 
 Profile
 Posted : 2007-10-11 00:01:51
The same, 12-17 seconds to execute. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-11 07:18:16

Ok, well try:

SELECT ListID, Name FROM Customer WHERE ListID = 'some list id'

using VB Demo driectly. See: How do I use the VB Demo for testing? for more.

 

  Top 
  Brett 
  
 Group: Members 
 Posts: 6 
 Joined: 2008-05-27 
 Profile
 Posted : 2008-07-10 04:22:27

CDitta, what solution did you come up with for keeping a QB database in sync with SQL 2005 ?

I am struggling with the same concepts ...  Tom, what is the best way to keep 2 way synchonization between a clone of the QB data in SL 2005 ?  

RIght now I have created a SSIS job referencing the linked server, and just trying to see what is the best approach.

Any suggestions greatly appreciated.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-07-10 09:40:38
Most run SSIS jobs that run every 15 minutes to pick up any changes to a QODBC table like this. This will display any modified Sales Order lines from 15 minutes ago:

Select * from SalesOrderLine Calldirect where timemodified >= {fn TIMESTAMPADD(SQL_TSI_MINUTE, -15, {fn NOW()})}

Calldirect is used to grab the new and any modified rows from QuickBooks directly bypassing any optimizer updates.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to