The architecture of Microsoft MSSQL Server is mainly divided into three components:
1. SQLOS: which implements the basic services required by MS SQL Server, including thread scheduling, I/O stat management and memory management.
2. Relational Engine: which implements the relational database components including support for databases, tables, queries and stored procedures as well as implementing the type system.
3. Protocol Layer: which exposes the MS SQL Server functionality.
SQLOS
SQLOS is the base component in the Windows SQL Server architecture. It implements functions normally associated with the Operating System, thread scheduling, memory management, I/O management, buffer pool management, resource management, synchronization primitives and locking, and deadlock detection. Because the requirements of Windows SQL Server are highly specialized, it implements its own memory and thread management system, rather than using the generic one implemented in the OS. SQLOS also includes synchronization primitives for locking as well as monitoring for the worker threads to detect and recover from deadlocks.


