Basically such scenario generate due to high execution sql query cost.
You can set appropriate timeout in connection string as below :
<appSettings>
<add key="Connstr" value="Server=192.168.1.6\SQLExpress;database=Mydatabase;timeout=100000;uid=usename;pwd=password;"/>
</appSettings>
and use below preventive/precautionary steps for minize table scan :
1)Define appropriate index on database table.
2)Check query execution cose using explain plan.
3)Try to avoid such full table scan query.
Thanks & Regadrs
Prashant K.