Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I insert recods using ADO fast?
Message
Information générale
Forum:
Visual C++
Catégorie:
ActiveX
Divers
Thread ID:
00962454
Message ID:
00962896
Vues:
10
I got the solution myself


>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform