开发者

How to force Linq 2 SQL to use EXEC instead of EXEC SP_EXECUTESQL

开发者 https://www.devze.com 2023-01-23 00:13 出处:网络
We are executing stored procedures using 开发者_StackOverflowL2S and during trace analysis we noticed that LINQ uses SP_EXECUTESQL instead of EXEC.

We are executing stored procedures using 开发者_StackOverflowL2S and during trace analysis we noticed that LINQ uses SP_EXECUTESQL instead of EXEC.

I do understand that there are advantages of using SP_EXECUTESQL, but we are in the process of troubleshooting a mysterious DB issue and I was wondering if it's possible to force LINQ use EXEC instead of EXEC SP_EXECUTESQL?

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消