Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I insert recods using ADO fast?
Message
 
À
Tous
Information générale
Forum:
Visual C++
Catégorie:
ActiveX
Titre:
How do I insert recods using ADO fast?
Divers
Thread ID:
00962454
Message ID:
00962454
Vues:
44
Hi Everybody,

I use the following commands in VC++ to insert a number of records to a VFP table in a database:
For (int i = 0; i <= reccount; i++){
   cmd->CommandText =  "INSERT INTO MyTable (field1, field2) " +
                       " Values(Value1[i], Value2[i]) ";
   cmd->Execute(&vNull,&vNull,adCmdUnknown);
}
However it is fairly slow. Does anybody know any better way?

Thank you,
Ali
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform