Why do we have to write SET FMTONLY OFF in stored procedures when using Entity Framework

后端 未结 4 1025
时光说笑
时光说笑 2021-02-04 10:51

I recently joined one of the project in my team. They use ASP.NET MVC and MS SQL along with Entity Framework as ORM.

I noticed that each of the stored procedures used in

4条回答
  •  自闭症患者
    2021-02-04 11:05

    I believe the reason is similar to the one for stored procedures that run from SSRS. In summary, when FMTONLY is active, your stored procedure may have some unexpected results. Hence the reason for explicitly turning it off. For details read Dealing with the Evil of FMTONLY from SSRS

提交回复
热议问题