LINQ timed out while the same query works great in SQL
        Posted  
        
            by 
                oshafran
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by oshafran
        
        
        
        Published on 2011-01-16T15:50:28Z
        Indexed on 
            2011/01/16
            15:53 UTC
        
        
        Read the original article
        Hit count: 371
        
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!
© Stack Overflow or respective owner