Solve the problem SQL statements Query execution timeout slower than in Dapper

At the end of the statement add Add OPTION (RECOMPILE) to the end

https://stackoverflow.com/questions/10933366/sp-executesql-is-slow-with-parameters

Guess you like

Origin www.cnblogs.com/wfwup/p/10944472.html