Home Forums SQL Server 2008 SQL Server Newbies INSERT running slow in SQL 2016 RE: INSERT running slow in SQL 2016
January 29, 2018 at 9:25 am
AlexSQLForums - Thursday, January 25, 2018 1:36 PMGrant Fritchey - Thursday, January 25, 2018 12:11 PMAlexSQLForums - Thursday, January 25, 2018 10:10 AMGrant Fritchey - Thursday, January 25, 2018 12:11 PMAlexSQLForums - Thursday, January 25, 2018 10:10 AMDid you do the following after migration
Use DB;
DBCC UPDATEUSAGE(DB);
GO
EXEC sp_updatestats;
GOWhy would you immediately run sp_updatestats on slow execution of a query? Maybe UPDATE STATISTICS WITH FULLSCAN has already been run. For any table with a single row or more modified, you'll now get a sampled update of the statistics. Without knowing a lot more about the situation, this is actually poor advice.
Did you do the following after migration
Use DB;
DBCC UPDATEUSAGE(DB);
GO
EXEC sp_updatestats;
GOWhy would you immediately run sp_updatestats on slow execution of a query? Maybe UPDATE STATISTICS WITH FULLSCAN has already been run. For any table with a single row or more modified, you'll now get a sampled update of the statistics. Without knowing a lot more about the situation, this is actually poor advice.
I asked if sp_updatestats were executed after the migration and not on slow execution of the query.
Yes sp_updatestats was executed