We migrated one DB SQL 2005 to SQL 2014 with all objects. Compatibility mode was changed to 120.The problem is happening to us is that after migration, implementation of procedures was fast but occasionally when running from the application procedures gives time out. If you then recompile the procedure works well.Before making the Recompile, if I delete the statistics the procedure continues to fail, it only works when recompiled.I would like to know why the error occurs and how to fix it.regards
↧