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 : Using sp_optimizefullsync with No SyncSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Using sp_optimizefullsync with No Sync 
 Author   Message 
  Matt 
  
 Group: Members 
 Posts: 25 
 Joined: 2006-04-25 
 Profile
 Posted : 2006-11-15 08:13:20

I am using the No Sync tag in a pass-through query. I don't need the old data to be updated but am wondering if I can add the new data entries to my optimized table without it re-optimizing every entry. In a previous thread, you had said this:

Or you can resync your optimized InvoiceLine table by first doing:

sp_optimizefullsync InvoiceLine

then read directly out of the optimized table by doing:

select * from InvoiceLine NOSYNC

This is very f...a.......s.................t.

My question is this: Is the sp_optimizefullsync salesreceiptline tag what I am looking for to do what I mentioned above, and if so, how do I incorporate it into my SQL?

I tried this earlier:

sp_optimizefullsync salesreceiptLine select txnDate, salesreceiptLineQuantity, salesreceiptLineItemRefFullName from salesreceiptLine nosync WHERE Txndate >= {d '2006-09-01'}

It gives me the error:

ODBC-call failed

[QODBC] Unexpected extra token: select(#11017)

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-11-15 08:36:06

To update the salesreceiptLine table manually at any point you just run:-

sp_optimizeupdatesync salesreceiptLine

or if you want to do it on the fly within a query you do:-

select txnDate, salesreceiptLineQuantity, salesreceiptLineItemRefFullName from salesreceiptLine VERIFY WHERE Txndate >= {d '2006-09-01'}

 

  Top 
  Matt 
  
 Group: Members 
 Posts: 25 
 Joined: 2006-04-25 
 Profile
 Posted : 2006-11-15 10:02:53
I assume the only way to use the sp_optimizefullsync InvoiceLine is to do a separate pass-through from the one using a nosync tag? It still wants to run through every record when I run the sp_optimizefullsync InvoiceLine --is there a way to only optimize records after a certain date so that it won't go through thousands of records eact time?  

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-11-15 10:28:36

Yes, stored procedures need to run through as seperate queries.

sp_optimizeupdatesync salesreceiptLine

will compare the timestamp of the optimized table and the live QuickBooks table and update the optimized table.

 

  Top 
  Julie Alley 
  
 Group: Members 
 Posts: 18 
 Joined: 2006-09-27 
 Profile
 Posted : 2006-11-26 07:53:17
I have tried this in Access, but I must not have the Syntax correct.

What would the syntax be to re-query a customer table after a change has been made using your instructions found under the thread titled "entering Customers Through ODBC Driver".

Thank you for your time, 

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

sp_optimizeupdatesync Customer

but the query needs to be run as a pass-through query as per: How do I create a Pass-Through Report using Microsoft Access 2003?

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to