Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Clear Table or Drop Table

Author  Topic 

MevaD
Starting Member

32 Posts

Posted - 2010-05-06 : 17:45:07
I am refreshing data (about 20,000 rows) in a table every hour. Is it better to:

1. Delete the existing data and insert new

OR

2. Drop the table, recreate it and then insert

Thanks for any (good) advice :)

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-05-06 : 17:54:54
3. Truncate table, insert new

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

MevaD
Starting Member

32 Posts

Posted - 2010-05-06 : 17:59:56
OK, got it - thank you.

-MD
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-05-06 : 18:07:39


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -