Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimizing a SQL Insert statement
Message
De
22/03/2006 11:18:10
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, États-Unis
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
01106642
Message ID:
01106683
Vues:
23
Simplified
use table.dbf

go top
scan
INSERT INTO sqltablepersons where person1 from dbf
INSERT INTO sqltablepersons where person2 from dbf
INSERT INTO sqltablepersons where person3 from dbf
insert into sqltablevehicle
insert into sqltableletter

endscan

I am also doing some seeks into other dbf's during the scan and a couple sql select statements to see if records already exist in the sql tables before inserting, eveything runs efficiently except the sql inserts
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform