The Database Engine is SQL Server’s core database management service for building and hosting relational databases. It sits within a larger SQL Server ecosystem and includes the relational engine and storage engine. section 1.2 section 1.5
A query passes through several Database Engine stages:
- The protocol layer receives client data through Tabular Data Streams and SQL Server Network Interface. section 1.2.1
- The parser checks syntax, performs algebraization by resolving object names to object IDs, and produces a normalized query tree. section 1.2.1
- The Query Optimizer determines an efficient way to return the requested result because SQL describes desired results rather than prescribing execution steps. section 1.2.1
Mistake: treating a read as harmless
A MagicChoc product page queries dbo.Products for a product name, description, image, and stock message. The example uses NOLOCK, explicitly flagged as a mistake; query choices can affect real systems rather than merely returning screen data. section 1.2.1 section 1.5
Trace the request from the protocol layer through parsing and optimization in the query-flow diagram. section 1.2.1

