Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Transaction Management in SQL Server and C#
Rating: 3.8 out of 5(9 ratings)
125 students

Transaction Management in SQL Server and C#

Learn transaction control mechanisms to build database apps that ensure integrity and consistency in SQL Server and C#
Created byHusam Nujaim
Last updated 4/2025
English
English [Auto],

What you'll learn

  • Build consistent database applications in C# and SQL Server
  • Manage SQL transactions on the database
  • Ensure the data integrity of the database
  • Handle database errors and exceptions in C# and SQL Server
  • Create SQL Server database, tables and stored procedures and connect with C# applications
  • Understand the importance of transaction management

Course content

10 sections29 lectures4h 53m total length
  • The Concept of a Transaction8:36

    Learn how a transaction ensures atomicity, consistency, isolation, and durability, tracks states from active to committed or aborted, and guarantees serializability and crash recovery in concurrent processing.

  • Schedules and Serializablility11:37

    Define schedules and serializability in transaction management, showing how interleaved operations affect commits or aborts, and illustrate anomalies such as dirty reads, lost updates, and recoverable schedules.

  • Concurrency Control10:50

    Explore concurrency control using lock-based techniques, including shared and exclusive locks, the strict two-phase locking protocol, and how serializable schedules prevent the phantom problem.

  • Deadlock6:37

    Explore how deadlocks occur when transactions hold and wait for exclusive locks, analyze the waits-for graph for detection, and learn prevention strategies and choosing a deadlock victim to avoid starvation.

  • Crash Recovery9:15

    Explore crash recovery in transaction management, detailing the recovery manager that enforces atomicity and durability, the log, and ARIES three-phase recovery (analysis, redo, undo) with checkpoints and dirty page handling.

  • Transaction Support in SQL4:54

    Learn how SQL server transactions start automatically, end with commit or rollback, and how access modes and isolation levels—read committed, serializable, repeatable read, phantom and non-repeatable reads—affect concurrency.

  • Quiz

Requirements

  • Be familiar with SQL
  • Be familiar with C#

Description

A transaction is a unit of work that is performed against a database. Transactions are units or sequences of work accomplished in a logical order, whether in a manual fashion by a user or automatically by some sort of a database program.

A transaction is the propagation of one or more changes to the database. For example, if you are creating a record or updating a record or deleting a record from the table, then you are performing a transaction on that table. It is important to control these transactions to ensure the data integrity and to handle database errors.

In this course, we are going to dive deeply into transaction control mechanism.  

You will learn everything you need to build your concrete and consistent database applications using C# and SQL Server.

Who this course is for:

  • Developers who want to build application when transaction management is critical
  • Developers who want to ensure the data integrity of the database and to handle database errors
  • Developers who is curious about diving deeply into transaction control mechanism
  • Developers who are curious about connecting SQL Server database with C# applications
  • Developers who are curious about stored procedures in SQL Server database engine