liveBook · Manning

Database management tool

As explained in 100 SQL Server Mistakes and How to Avoid Them

A database engine is the subsystem that processes queries, manages transactions, and accesses stored database data.

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

Figure 1.3 The flow of a query through the Database Engine

Trace the request from the protocol layer through parsing and optimization in the query-flow diagram. section 1.2.1

How 100 SQL Server Mistakes and How to Avoid Them covers it

How deep it goes
Traces protocol entry, parsing, algebraization, normalization, and optimization while stopping short of a complete execution treatment.
Examples
Uses a MagicChoc product query against dbo.Products, including stock logic, product imagery, and a cautioned NOLOCK hint.
What you can do after
Evaluate query flow and recognize how Database Engine choices can contribute to performance, data-loss, or security problems.
How it connects
Connects the relational engine and storage engine with the protocol layer, parser, algebraization, and Query Optimizer.

Also explained in

Compare how 2 books explain database management tool →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of 100 SQL Server Mistakes and How to Avoid Them. The section links point to the parts of the book it draws on.