Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ZAP my table
Message
De
12/01/2005 15:07:33
 
 
À
12/01/2005 00:50:08
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Titre:
Divers
Thread ID:
00976276
Message ID:
00976515
Vues:
15
>Hi,
>I meant I wan to delete all record "DELETE FROM myTable". But I don't want logging.
>
>Thank you

TRUNCATE TABLE will work as long as you don't have any defined relationships to that table. Otherwise DELETE is your only option.

If this is not a production database you can change the recovery model so that logging is essentially bypassed. Look up the ALTER DATABASE command in BOL.

If you cannot change the recovery model you can shrink the database later, or truncate the log file after you are done. Both of these are covered in BOL.

Hope that helps.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform