E
Ernesto
The follwoing scheme istaking a huge amount of time to update sql server:
Set rs = New ADODB.Recordset
rs.Open "SELECT * FROM " & tableName, getConn, adOpenKeyset,
adLockBatchOptimistic
For I = 1 To N
rs.AddNew
For J = 1 To FieldCount
rs.Fields(FieldArray(J)) = data(I, J)
Next J
'rs.Update
Next I
rs.UpdateBatch
Is there a better way?
is there a way to call ODBC API routines such as BULKOPERATIONS from within
VBA?
Any help will be most appreciated
Set rs = New ADODB.Recordset
rs.Open "SELECT * FROM " & tableName, getConn, adOpenKeyset,
adLockBatchOptimistic
For I = 1 To N
rs.AddNew
For J = 1 To FieldCount
rs.Fields(FieldArray(J)) = data(I, J)
Next J
'rs.Update
Next I
rs.UpdateBatch
Is there a better way?
is there a way to call ODBC API routines such as BULKOPERATIONS from within
VBA?
Any help will be most appreciated