Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ZAP my table
Message
From
12/01/2005 15:07:33
 
 
To
12/01/2005 00:50:08
General information
Forum:
Microsoft SQL Server
Category:
Database management
Title:
Miscellaneous
Thread ID:
00976276
Message ID:
00976515
Views:
16
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform