What's New in SQL Server 2019 and Table Variables deferred compilation
Hi guys, Here we are together again to continue the discussion started in the previous article you find here. Previously I told you the history of Table Variables and we have also seen their limits. Today is the time to tell you the news that accompany the release of the 2019 version of SQL Server , starting from the Table Variables . Are you ready? Get comfortable and let's go! Table Variables deferred compilation Let's immediately give a name to the novelty introduced by SQL Server 2019 regarding Table Variables: the Table Variables deferred compilation As the name explains, the compilation of the Table Variables becomes Deferred. Deferred in the sense that it happens not at the moment in which the table is created but is postponed (deferred) at the moment in which the table is used in our Query . More in detail, the cardinality estimate occurs at the first use, after which no other recompilation will take place . In fact, it is therefore a compromise between recompiling ...