Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question
Message
From
09/08/2003 23:48:10
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00818288
Message ID:
00818642
Views:
16
>My question is : Is it better to issue a Truncate table statement to empty out the existing table or drop it and re-create it ? Is there an advantage or disadvantage of using either method ?

You could go for the obvious: if you drop the table, you'll have to recreate not only the table but also all of the indexes, constraints, and permissions.

I think I'd look at truncate it.

-Mike

>Hi All,
>
>I need an advise. I'm writing a stored procedure in SQL2000 that will be used in overnight process to re-create sales table based on couple of tables from another database.
>
>My question is : Is it better to issue a Truncate table statement to empty out the existing table or drop it and re-create it ? Is there an advantage or disadvantage of using either method ?
>
>Thank you,
>Daniel
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform