Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing a SQL Insert statement
Message
From
22/03/2006 11:18:10
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
 
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
01106642
Message ID:
01106683
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform