Having a weird problem. I'm testing an ASP.NET application I wrote that queries SQL server via AJAX. The application is using LINQ-to-SQL to load data from approx 8 or so tables in a join, and every once in a while, the call to SQL server locks up and never returns.
My first thought was that it was getting deadlocked, but from what I've read, SQL server should elect to kill one of the offending threads if this happens. In the case of this app, there aren't any other users accessing the database either, so I don't see how this could be the problem.
Other symptoms:
The processor usage on the server spikes at around 40% when executing this call, and stays there, even after the application is closed ("Stopped" in Visual Studio).
The server continues executing the call until I actually go and kill the Visual Studio web server (Cassini) that lives in the tray.
When looking at what the SQL server is doing, all we can see is that it is executing the LINQ-to-SQL call, nothing looks out of the ordinary.
Anyone have any thoughts about what this "smells" like?
Thanks, Sam