timeout exception

I'm having a problem with queries when the database increase.

When the database increase let's say.. about 100MB, some queries give me this Exception of "Timeout Expired or server not available.."etc

I tried to find solution. I read about the SqlCommand and its "Timeout" property to set higher, but still the same error ocurrs.
I made some changes to queries, and for example they run in 30-40 sec. but,
if i get out with the tunning, then the database will grow more, and i will get again this error.The error ocurrs in .NET application, not when i run it in Sql analizer of MS SQL.
Could anybody tell me the real solution for this problem ? still, when i run any of this queries in Sql Analizer they run and give me the results.So i think it's some
problem maybe with .NET or the core of ADO.NET or some other settings, i don't know.Can i get some help please?

many thanks.
[942 byte] By [jasie24] at [2007-11-20 2:53:24]
# 1 Re: timeout exception
When the db is slow for some reasons and it is accessed over the network, increasing timeout helps. Set it to about 5 mts or so. And I have tried setting the Connection property to increased timeout, it works. It wouldnt be a problem in query analyser bcos mostly it is running locally then.
Charu0306 at 2007-11-10 3:30:14 >
# 2 Re: timeout exception
Set the TimeOut to zero , so that it will never timeout.
aniskhan at 2007-11-10 3:31:14 >
# 3 Re: timeout exception
indeed i have increase the timeout,very high,and it works.I tried to put 0,but it was risky, sometimes it has blocked my system
And other thing that i noticed it was ,that sometimes the same query runs more quickly,sometimes very slow and i wait very long time,but i get the results.So,i thing the network settings,and the data workflow influence my application.
Many thanks,for all the replies.
jasie24 at 2007-11-10 3:32:17 >