Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Truncate
Message
General information
Forum:
Microsoft SQL Server
Category:
Database management
Title:
Miscellaneous
Thread ID:
00669650
Message ID:
00669672
Views:
13
No. TRUNCATE TABLE must be called for each table. You could write a stored proc which created the various TRUNCATE TABLE commands. The other issue is that TRUNCATE TABLE cannot be used on tables that have a FK constraint.

-Mike

>Hi All:
> Is there a way I can truncate all of my tables in a database by issuing just one command without deleting the entire database structure or the tables?
>Thanks for the help
>MA
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform