SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

FORCE_DEFAULT_CARDINALITY_ESTIMATION: A Simple Explanation

FORCE_DEFAULT_CARDINALITY_ESTIMATION is a query hint that gives one query the default cardinality estimator, even when the database is set to the legacy one. This post builds a demo table, compares the row estimates of both models with the real count and shows how to prove which model a plan used. It also names the opposite hint and the permission difference.

Continue Reading