You can increase the timeout interval for query by adding the following entry to the webconfig under the <appSettings> tag:

<add key="AdHocQueryTimeOutSecondsDefault" value="123456" />

Replace 123456 with the number of seconds you want to allow the query to process.  For example, if you want to allow the query processor to run for one hour you would replace 123456 with 3600.