Member Login

Username
Password
Forget Password
New Sign Up
  Search Forums

  FREE Support
  Forums

  QODBC v10
  QODBC v9
  QODBC v8
  QODBC v7
  QODBC v6

  QODBC FAQs

The QDeveloper Forum is the property of Data Access Worldwide, Australia. The contents of this forum have been taken by FLEXquarters.com Limited, Hong Kong at: http://support.flexquarters
.com/esupport/
without our permission.

 


 
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
 
 
 
 

Forum : Inserting Employee PerformanceSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v9 Independent Self Help Forum

 New Topic 
 
 Post Reply 
[1]  
 Inserting Employee Performance 
 Author   Message 
  scadav 
  
 Group: Members 
 Posts: 9 
 Joined: 2008-12-28 
 Profile
 Posted : 2009-01-07 20:22:51

I am inserting employee records from MS Access and it takes about 8-9 minutes to insert 110 employees. I am doing a bulk insert (see below for sample) as per a previous qodbc post that I had found (although it looks like QODBC does each one individually). I have my access driver settings setup as per this posting: SLOW performance using MS Access and QuickBooks 2008 Enterprise Edition .

So my question is...is 8-9 minutes to do 100 employee inserts reasonable or should it be taking a lot less time?

sample vba:

sInsertSQL = "INSERT INTO " & sTableName & " ( IsActive, FirstName, MiddleName, LastName, SIN, Sex, BirthDate, EmployeeAddressAddr1, EmployeeAddressCity, EmployeeAddressState, EmployeeAddressPostalCode, Phone, Notes ) " & _

"SELECT 1 AS ActiveFlag, Trim([Employees.FirstName]), Left([MiddleName],1) AS MI, Trim([Employees.LastName]) & ' ' & [OldEmployeeID] AS ModifiedLastName, Employees.SIN, IIf([Male]=True,'Male','Female') AS Sex, Employees.DOB, Employees.Address, Employees.City, Employees.State, Employees.Zip, Employees.PrimaryPhone, 'Imported ASED - ' & Now() & ' ID: ' & [DatabaseID] AS QBNotes " & _

"FROM Employees " & _

"WHERE (((Employees.qb_exported) Is Null)) "

DoCmd.SetWarnings False

DoCmd.RunSQL sInsertSQL

DoCmd.SetWarnings True

 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-08 09:49:41

Uncheck "Optimize data after each Insert or Update".

 

  Top 
  scadav 
  
 Group: Members 
 Posts: 9 
 Joined: 2008-12-28 
 Profile
 Posted : 2009-01-08 12:07:34

Much faster....under 2 minutes now.

Do I lose anything with this unchecked?  It looks like from all screen shots I have seen it is always checked.

 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-08 13:44:09

Sorry, but I always show it checked so everyone stops posting that they did a insert and they couldn't find the new record. When working with batches you should have this option off and then do a:

sp_optimizeupdatesync Employee

afterwards to resync the optimized table.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to    

Copyright (c) 2006-2009
Data Access Worldwide, Australia. This FREE self help forum website was copied by FLEXquarters.com Limited, Hong Kong to: http://archive.qodbc.com
/forum50f5.html
without our permission.

The QDeveloper Forum is dedicated to the FREE professional exchange of information. QODBC and FlexODBC users can post support queries, report product bugs, or simply search topics for help. Data Access Worldwide - Asia Pacific normal office business hours are 9am to 5pm week days Australian EST with the exception of Public Holidays.
       
ABN: 86 544 223 459
PO Box 873, Boronia VIC 3155 Australia  Tel: 03 9761 3644  Intl: +613 9761 3644