Quantcast
Channel: SQL Server Migration forum
Viewing all articles
Browse latest Browse all 1700

Slow stored procedures after migration 2008 to 2016 SQL server

$
0
0

Dear,

i have recently migrated database from SQL 2008R2 SP3 (WS 200R2 )to SQL2016 SP2 CU2 (WS 2012R2). Migration was made with backup restore method.

Now we are facing with really slow performance of one stored procedure. New server is far more powerful that old one but sp is x3 slower that the old server.

- Execution plan on both servers is same

- I have left compatibility level to 100 and also made change to 130 but without success.

- I have exec sp with recompile again no success with

- Index and update statistics are up to date

- Exec store procedure with recompile

- I have add some trace flags which where recommend but without success

- Changed cardinality estimator :

ALTER  DATABASE  SCOPED CONFIGURATION SET  LEGACY_CARDINALITY_ESTIMATION = ON;
GO

ALTER  DATABASE  SCOPED CONFIGURATION SET  QUERY_OPTIMIZER_HOTFIXES = ON;
GO

ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING =OFF ;GO

Thank you





Viewing all articles
Browse latest Browse all 1700

Trending Articles