Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

Import query execution plan from SQL Server 2008 to SQL Server 2017 instance

$
0
0

Hi,

Recently we have upgraded our production instance from SQL server 2008 to SQL Server 2017. All Query and Stored procedures are running fine except one query is running slow in new instance after up-gradation. In SQL Server 2008 the query takes 7 minutes to execute but in 2017 it takes 50 minutes to executes.

If I change the compatibility level of the 2017 instance to 100 (2008) then the query take 7 minutes to executes.

I need to keep the database compatibility level 140 (2017). Is there any way I can run this particular query with compatibility level 2008. 

I saw some site trace flag '9481' can be enable in SQL Server 2014 to run query behave like 2008. Is there any similar trace flag for SQL Server 2017?

Or is there any way to export the query plan from SQL Server 2008 instance and import to SQL Server 2017?

Regards

Arif


Viewing all articles
Browse latest Browse all 7696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>