__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System
you can't empty the database but keep the tables, emptying the database would remove all the tables
I'll assume you want to keep the tables and the db structures intact but just remove the records.
To remove all records from a table you use;
Code:
TRUNCATE TABLE table_name
this will also set any autonumbers back to the initial value
you can also use
Code:
DELETE FROM table_name
to empty the database use;
Code:
DROP TABLE table_name
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System
« Reply to how we can empty the table or database in ASP