Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Appending/Truncating SQL-Server Tables

Status
Not open for further replies.

hjohnson

Programmer
Aug 1, 2001
90
US
I have a Foxpro app with a view to SQL-Server Table through which I first have to delete all the current records and append new ones. My current process (below),- A delete statement, then an Append from statement - is too slow. Is there a faster or better way?

** View name is Load_data **
use load_data
delete from load_data
append from Newdata


Many thanks in advance for any help on this matter
HJ
 
Have you tried creating a new table using the structure of the old one and then renaming the tables? First give the old table a back-up name and then rename the new one to the old one. You could then delete the back-ups at leasure. -- Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top