Query Execution Phases

Here’s how SQL Server executes a query…

Performed By Phase Description
Relational Engine T-SQL Statement that needs to be executed
Parse Check the T-SQL syntax
Create a tree of logical operators called the parse tree
Bind Check whether the objects exist
Bind the objects to the logical operators from the parse phase and create a tree of logical operators bound to the actual objects called the algebrised tree
Optimise Generate candidate plans and select the optimal one
Create the execution plan with the logical operators mapped to the physical operators
Storage Engine Execute Execute the query
Cache the plan
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s