25 Nisan 2017 Salı

The query processor ran out of internal resources and could not produce a query plan with WHERE in and several thousand values Hatası



Where  statement da kullandığınız IN ifadesi içerisine limitinin dışında değer girmenizden dolayı SQL Server dan 
"The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information." 
hatasını almaktasınız. Hem bu hatayı almamak hemde daha iyi bir performans için bu noktada temp tablo yada subquery kullanarak hem hatadan kurtulabilir hemde daha iyi bir performans elde edebilirsiniz. Konu ile ilgili bu sayfada yorum kısmında Microsoft durumu açıklayıcı bir anlatımda da bulunmuş. Umarım faydalı olur.

0 yorum :

Yorum Gönder