January 24, 2018 at 11:24 pm
Good Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
January 25, 2018 at 12:11 am
coolchaitu - Wednesday, January 24, 2018 11:24 PMGood Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
More details please!
😎
Server specs, wait types etc.
January 25, 2018 at 8:58 am
coolchaitu - Wednesday, January 24, 2018 11:24 PMGood Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
Lots more details. Just an INSERT or an INSERT with a SELECT? Statistics? Execution Plan? Structures?
There is no way in the world for someone to give you enough information to begin to troubleshoot your problem when you define the problem as "taking a very long time." It could be anything. You have to provide some information for us to even start to make educated guesses.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 25, 2018 at 10:10 am
coolchaitu - Wednesday, January 24, 2018 11:24 PMGood Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
Did you do the following after migration
Use DB;
DBCC UPDATEUSAGE(DB);
GO
EXEC sp_updatestats;
GO
January 25, 2018 at 12:11 pm
AlexSQLForums - Thursday, January 25, 2018 10:10 AMDid you do the following after migration
Use DB;
DBCC UPDATEUSAGE(DB);
GO
EXEC sp_updatestats;
GO
Why 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.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 25, 2018 at 1:36 pm
Grant 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.
January 29, 2018 at 9:24 am
Grant Fritchey - Thursday, January 25, 2018 8:58 AMcoolchaitu - Wednesday, January 24, 2018 11:24 PMGood Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
Lots more details. Just an INSERT or an INSERT with a SELECT? Statistics? Execution Plan? Structures?
There is no way in the world for someone to give you enough information to begin to troubleshoot your problem when you define the problem as "taking a very long time." It could be anything. You have to provide some information for us to even start to make educated guesses.
Only INSERT
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
January 29, 2018 at 11:55 am
coolchaitu - Monday, January 29, 2018 9:24 AMGrant Fritchey - Thursday, January 25, 2018 8:58 AMcoolchaitu - Wednesday, January 24, 2018 11:24 PMGood Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
Lots more details. Just an INSERT or an INSERT with a SELECT? Statistics? Execution Plan? Structures?
There is no way in the world for someone to give you enough information to begin to troubleshoot your problem when you define the problem as "taking a very long time." It could be anything. You have to provide some information for us to even start to make educated guesses.
Only INSERT
That's good, but still doesn't provide us with the information needed to answer your question.
We need DDL including indexes defined, the execution plan for the slow execution.
January 29, 2018 at 2:37 pm
coolchaitu - Wednesday, January 24, 2018 11:24 PMGood Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
We had the same problem with many stored procedures that did multi-row inserts. It was all thanks to the "improvements" they made in the optimizer (Cardinality Estimator specifically, IIRC). We "patched" the problem by using the Trace Flag that says to use the old CE. Unfortunately, that also means that our "get out of the woods patch" has become the fix because people don't understand that we actually do need to tweek,n,peak the inserts and won't even try to fix them.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 29, 2018 at 2:55 pm
P.S. The Trace Flag that I'm talking about is 9481. Do Google it before you use it.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 31, 2018 at 7:03 am
Jeff Moden - Monday, January 29, 2018 2:55 PMP.S. The Trace Flag that I'm talking about is 9481. Do Google it before you use it.
I know not a lot to go on but the first thing I thought of was CE too. It had to be done but the CE changes are causing some real issues for folks.
"it worked fine on the old server, are you sure it was setup correctly" I've learned a lot about explain plans and stats over the last 6 months,
Job security I guess...
February 14, 2018 at 11:28 am
coolchaitu - Wednesday, January 24, 2018 11:24 PMGood Morning Experts,
We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016 and noticed same INSERTS taking very very long time. Could it be due to different settings on SQL 2016? Please help
And how about the effects on other DMLs? If they too have become slow , then you should also consider architectural (DB file distribution etc) and infrastructure differences too.
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply