SQL help could be used

There's a problem with VBB as it will crash with a session table overflow.
Basically I need to run a script to dump the table every few days.

Anyone can advise on a way to empty table "session".

If I get the sql query syntax I can automate it.
this was the reason i couldn't connect all the day?
Yeah it's a flaw in vbulletin...
Try this place:

http://www.dbforums.com/


TRUNCATE
TABLE "table_name"

this is the way how it works with an oracle database, it deletes all data from a table :D so ya can make the table empty from its data only
Yup, works for (My)SQL same way.

Is that what you need, or only part of the table's content (like "everything but todays sessions")?
Yes, jut empty the table's fields not drop the fields.
Use a truncate statement and set it up as a Cron job, like this: http://community.contractwebdevelopment.com/cron-job-mysql

Or you could manually run the truncate statement such as TRUNCATE TABLE <tablename>.

Truncate will just clear the rows, the column definitions will remain.

Maybe you could also do it with a trigger?

Original thread: https://assemblergames.com/threads/sql-help-could-be-used.26648/