LINQ calling sp_executesql instead of the SP ? RRS feed

  • Question

  • I am not sure when and how this happened but we observed that LINQ to SQL is now calling sp_executesql for our stored procedure calls. It used to call Exec on the SP directly sometime ago. Has there been any change recently in .NET 4.5 or maybe it has to do with the datacontext passed in. I remember doing one change to always allow a unique thread for the datacontext. It will save me a lot of time if somebody from Microsoft can answer this.


    Thursday, March 7, 2013 4:23 PM


All replies