Given the following constants:

  • The same database with the same structure (tables, indexes, etc)
  • The same data
  • The same SQL Server and hardware configuration
  • The same statistics
  • The same SET options in the client
  • The same SQL Server versions
  • The same trace flags

Given these constants, will SQL Server always produce the same plan for a given query?

If not, are there other considerations? Is there also an element of nondeterminism to consider as well?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 dba.stackexchange
scroll top