Home All Groups Group Topic Archive Search About

ADO.NET Timeout Exception - I have tried everything

Author
18 May 2006 3:40 PM
sorcerdon
Hello!
I am looking for someone who has solved this multi-million people's
problem. EVERYONE seems to ahve this problem.

Im a creating a data set and populating it with a call to a store proc.

Its a complex stored proc with the end result as an insert to a temp
table. Then I do a select from the temp table - in the store proc.


I get the following sqlException error on the following line:
DataAdapterName.Fill(DataSetName, "TableName")


The error is:
Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.


My connectiong string looks like this:
<add key="cnITDevWinUser" value="Data Source=server; Integrated
Security=SSPI; Initial Catalog=dbname; pooling=false;connection
reset=false;connection lifetime=5;min pool size=1;max pool
size=10;connection timeout=120" />


I have admin rights on that db.


I have set my command.timeout to 500.


If i run this same code in a windows application, it works fine.
If I use a DataReader with the same storeProc, it works fine.
If I run this same code on a simple selec (hello world), it also works
fine.


If I run this store proc in QueryAnalyzer it works fine and is done
within 6 seconds.
If I run this on a different machine it produces the same result.


I am using SQL2000 with vb.net in VS2003.


I have looked everywhere for the answer. I can't find it anywhere.
PLEASE SOMEONE HELP.


regards,
Stas K.(a.k.a Sorcerdon)

Author
18 May 2006 8:39 PM
Jeff Dillon
MaxPool Size is only 10? The default is 100.

Try a simpler connection string

value="Data Source=server; Integrated Security=SSPI; Initial Catalog=dbname;
"

<sorcer***@gmail.com> wrote in message
Show quote
news:1147966853.040793.64140@i39g2000cwa.googlegroups.com...
> Hello!
> I am looking for someone who has solved this multi-million people's
> problem. EVERYONE seems to ahve this problem.
>
> Im a creating a data set and populating it with a call to a store proc.
>
> Its a complex stored proc with the end result as an insert to a temp
> table. Then I do a select from the temp table - in the store proc.
>
>
> I get the following sqlException error on the following line:
> DataAdapterName.Fill(DataSetName, "TableName")
>
>
> The error is:
> Timeout expired. The timeout period elapsed prior to completion of the
> operation or the server is not responding.
>
>
> My connectiong string looks like this:
> <add key="cnITDevWinUser" value="Data Source=server; Integrated
> Security=SSPI; Initial Catalog=dbname; pooling=false;connection
> reset=false;connection lifetime=5;min pool size=1;max pool
> size=10;connection timeout=120" />
>
>
> I have admin rights on that db.
>
>
> I have set my command.timeout to 500.
>
>
> If i run this same code in a windows application, it works fine.
> If I use a DataReader with the same storeProc, it works fine.
> If I run this same code on a simple selec (hello world), it also works
> fine.
>
>
> If I run this store proc in QueryAnalyzer it works fine and is done
> within 6 seconds.
> If I run this on a different machine it produces the same result.
>
>
> I am using SQL2000 with vb.net in VS2003.
>
>
> I have looked everywhere for the answer. I can't find it anywhere.
> PLEASE SOMEONE HELP.
>
>
> regards,
> Stas K.(a.k.a Sorcerdon)
>
Author
19 May 2006 1:25 PM
Sorcerdon
Jeff,
I tried all kind of combinations in my connection string. Including a
10 minute command.timeout.
Also, there are no locks.
Me and the boys had a little coffee break while it ran.. ran... and
died.
regards,
Stas K.
Author
19 May 2006 4:29 PM
Jeff Dillon
So other sprocs work ok? Run SQL Profiler to watch what is happening...handy
tool

Jeff

Show quote
"Sorcerdon" <sorcer***@gmail.com> wrote in message
news:1148045143.152286.106050@38g2000cwa.googlegroups.com...
> Jeff,
> I tried all kind of combinations in my connection string. Including a
> 10 minute command.timeout.
> Also, there are no locks.
> Me and the boys had a little coffee break while it ran.. ran... and
> died.
> regards,
> Stas K.
>

AddThis Social Bookmark Button