Skip to content

Truncate Table

Truncating a table removes all rows while keeping the table structure and definitions. In many databases, truncation cannot be rolled back.

  • Open DBCode Explorer and choose the database connection that contains the table.
  • Expand the connection and database that contain the table.
  • In the database tables list, find the table you need to truncate.
  • Right-click the table name and choose Truncate from the context menu.

Truncate table option

  • If DBCode asks for confirmation, review the table name carefully before confirming.
  • To stop the operation, cancel the confirmation prompt.
  • After DBCode completes the operation, the table remains in the DBCode Explorer but its rows have been removed.