LINQ timed out while the same query works great in SQL
- by oshafran
Hi
I am getting
Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
When I run the SAME query in the SQL query program I get result within seconds, and in LINQ it takes forever and fails.
What can cause this???
Thanks!