Updating statistics sql server 2016
But what about a database that was created in SQL 2000, migrated (poorly) to a SQL 2008 instance, and left in the SQL 2000 (80) backward compatibility mode? Do you want to assume that the DATA_PURITY check has been getting done? Also worth noting that column integrity checks are not performed when the PHYSICAL_ONLY option is used.While not as critical as the DATA_PURITY command noted previously, this one still has a place in any migration or upgrade process: This command will help fix any page count inaccuracies that are resulting in the sp_spaceused stored procedure returning wrong results.Therefore I would execute this: Bottom line: don’t forget to update the statistics after upgrading to SQL Server 2016.Failure to do so could result in your queries running longer as you start your testing.In the last post, we reviewed the options for upgrading SQL Server 2016. You should have taken one prior to the start of upgrading to SQL Server 2016, and you had better take one right now and again before you turn that database over to your end users.
But there is that one chance where it will dramatically improve performance and your customer will be happy as a result.We also collected information about the specific configurations applied to the server O/S, database instance, and the database itself.Review those details now to confirm the configurations were applied to the new server.Using sp_refreshview is a lot like flossing: it doesn’t take much effort, and the end result is usually worth it.(Beware that previous versions of SQL Server Management Studio (SSMS) had a bug related to sp_refreshview, check out the comments in this post for more details.)If you have upgraded SQL Server within the past ten years then you have noticed how the compatibility level is not set to the newest version after the migration is complete. With SQL Server 2016 this becomes more important than in previous versions due to the new Cardinality Estimator (CE).There is a great whitepaper from Joe Sack that details the good, the bad, and the ugly with the new CE.