In code that I inherited, I have a SqlDataSource that has a fairly complex select statement that for certain SelectParameters, always times out ("Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.").
When I run the exact same query with the same parameters in management studio, the query never times out and always takes less than a second.
Does anyone have an idea what the problem could be here? I can't make sense of it.