Q1
True / FalseThe TRUNCATE TABLE command removes all rows from a table and cannot be rolled back.
The TRUNCATE TABLE command is minimally logged and cannot be rolled back if executed outside a transaction.
Q2
True / FalseTRUNCATE TABLE can be used on tables with foreign key constraints.
TRUNCATE TABLE cannot be used if there are foreign key constraints unless those constraints are removed or handled.
Q3
True / FalseTRUNCATE TABLE resets the identity value to its seed value.
TRUNCATE TABLE resets the identity column value to its seed value, unlike DELETE.
Q4
True / FalseTRUNCATE TABLE can be used to delete specific rows based on a condition.
TRUNCATE TABLE removes all rows from the table and does not support WHERE clauses to filter rows.
Q5
True / FalseTRUNCATE TABLE operation generates a large amount of log data.
TRUNCATE TABLE generates minimal logging compared to DELETE operations, which log each row deletion.
Q6
True / FalseTRUNCATE TABLE can be used in a transaction and can be rolled back.
TRUNCATE TABLE is minimally logged, but it can be rolled back if used within a transaction.
Q7
True / FalseTRUNCATE TABLE affects table structure, including column definitions.
TRUNCATE TABLE only removes rows and does not affect the table structure or column definitions.
Q8
True / FalseTRUNCATE TABLE can be used to delete rows from a table with indexes without affecting the indexes.
TRUNCATE TABLE does not affect indexes beyond removing all rows from the table, so the indexes are still there but may be fragmented.
Q9
True / FalseThe TRUNCATE TABLE command can be used on tables that are part of a replication topology.
TRUNCATE TABLE is not allowed on tables that are part of a replication topology in SQL Server.
Q10
True / FalseTRUNCATE TABLE can be used to remove rows from tables in a partitioned table structure.
TRUNCATE TABLE can be used on partitioned tables, affecting all partitions by removing all rows.
Q11
True / FalseTRUNCATE TABLE operation is faster than DELETE when removing all rows from a large table.
TRUNCATE TABLE is typically faster than DELETE for removing all rows because it is minimally logged and does not generate row-by-row log entries.
Q12
True / FalseTRUNCATE TABLE does not fire any DELETE triggers that may be defined on the table.
TRUNCATE TABLE does not activate DELETE triggers, as it is not logged like DELETE statements.
Q13
True / FalseTRUNCATE TABLE can be rolled back if it is part of a transaction.
TRUNCATE TABLE operations are minimally logged but can be rolled back within a transaction, restoring the table to its previous state.
Q14
True / FalseTRUNCATE TABLE is suitable for large tables where deleting all rows is required without affecting the schema.
TRUNCATE TABLE is suitable for quickly removing all rows from a large table without affecting the table schema.
Q15
True / FalseThe TRUNCATE TABLE command cannot be used if there are active triggers associated with the table.
TRUNCATE TABLE can be used even if there are triggers on the table; however, triggers will not be executed as TRUNCATE does not generate row-level operations.