SQL Server Reporting Services Question:
Download Job Interview Questions and Answers PDF
Define Truncate and Delete commands?
Answer:
Truncate:
► Truncate command is used to remove all rows of the column.
► The removed records are not recorded in the transaction log.
► It is the fast way to remove all the records from the table.
► The records once removed can’t be rolled back.
► It can’t activate trigger.
► It resets the identity of the column.
Delete:
Delete command removes records one at a time and logs into the transaction log.
It can be used with or without where clause.
The records can be rolled back.
It activates trigger.
It doesn’t reset the identity of the column.
► Truncate command is used to remove all rows of the column.
► The removed records are not recorded in the transaction log.
► It is the fast way to remove all the records from the table.
► The records once removed can’t be rolled back.
► It can’t activate trigger.
► It resets the identity of the column.
Delete:
Delete command removes records one at a time and logs into the transaction log.
It can be used with or without where clause.
The records can be rolled back.
It activates trigger.
It doesn’t reset the identity of the column.
Download SSRS Interview Questions And Answers
PDF
Previous Question | Next Question |
How to unzip a File in SSIS? | What are the ways to controlling Cursor Behavior? |