question

dev avatar image
dev asked

what are the operations by SQL after Delete command;

What are the operations performed by SQL when we execute 'Delete From Table_name' command;

sql-server-2005delete
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Madhivanan avatar image
Madhivanan answered
1 It deletes all the data from the table            
2 It writes to the log file what are deleted            
3 May throw an error if linked to another table by foreignkey constraint
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kristen avatar image
Kristen answered
  • 1a) Deletes any associated records with Cascade Delete
  • 1b) Fires any associated triggers
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.