Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I insert recods using ADO fast?
Message
General information
Forum:
Visual C++
Category:
ActiveX
Miscellaneous
Thread ID:
00962454
Message ID:
00962896
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform