Database Fundamentals
24% of the examWhat this topic covers
Choose relational or document databases to match data and access needs. Write SQL with DDL, DML, and transactions, and spot ORM query patterns that affect server performance.
What do BEGIN TRANSACTION, COMMIT and ROLLBACK do?
BEGIN TRANSACTION starts the unit of work, COMMIT makes all successful changes durable, and ROLLBACK discards uncommitted changes after an error. These are transaction control language statements, so a failed update in the middle of a batch can be undone as one piece.