PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Connection TimeOut

Reply

Connection TimeOut

 
Thread Tools Rate Thread
Old 28-12-2006, 11:21 AM   #1
Henrry Pires
Guest
 
Posts: n/a
Default Connection TimeOut


Good Day to all.



I have a store procedure that makes many queries, use cursors and some other
complicated calculations. If I run it on Management Studio it takes around 3
minutes and work fine. But when I run it from VB.Net it gives me connection
Timeout after only 30 seconds. I have configurate the connection timeout to
all possible values. Even 0 seconds that means no timeout. What I'm doing
wrong?


  Reply With Quote
Old 28-12-2006, 11:27 AM   #2
Miha Markic [MVP C#]
Guest
 
Posts: n/a
Default Re: Connection TimeOut

Try adjusting Command's timeout.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"Henrry Pires" <henrry.pires_a_acinet,pt> wrote in message
news:edn0QJnKHHA.3552@TK2MSFTNGP03.phx.gbl...
> Good Day to all.
>
>
>
> I have a store procedure that makes many queries, use cursors and some
> other complicated calculations. If I run it on Management Studio it takes
> around 3 minutes and work fine. But when I run it from VB.Net it gives me
> connection Timeout after only 30 seconds. I have configurate the
> connection timeout to all possible values. Even 0 seconds that means no
> timeout. What I'm doing wrong?
>
>


  Reply With Quote
Old 28-12-2006, 02:05 PM   #3
Henrry Pires
Guest
 
Posts: n/a
Default Re: Connection TimeOut

doen's the command assume the values of the connection?

"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:BF1AF47C-DB6D-45A9-B244-804165B83369@microsoft.com...
> Try adjusting Command's timeout.
>
> --
> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
> RightHand .NET consulting & development www.rthand.com
> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>
> "Henrry Pires" <henrry.pires_a_acinet,pt> wrote in message
> news:edn0QJnKHHA.3552@TK2MSFTNGP03.phx.gbl...
>> Good Day to all.
>>
>>
>>
>> I have a store procedure that makes many queries, use cursors and some
>> other complicated calculations. If I run it on Management Studio it takes
>> around 3 minutes and work fine. But when I run it from VB.Net it gives me
>> connection Timeout after only 30 seconds. I have configurate the
>> connection timeout to all possible values. Even 0 seconds that means no
>> timeout. What I'm doing wrong?
>>
>>

>



  Reply With Quote
Old 28-12-2006, 02:21 PM   #4
Miha Markic [MVP C#]
Guest
 
Posts: n/a
Default Re: Connection TimeOut

Not for command execution. Connection timeout is amount of time for
estabilishing a connection, not executing a command.

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"Henrry Pires" <henrry.pires_a_acinet,pt> wrote in message
news:eXtP$koKHHA.3424@TK2MSFTNGP02.phx.gbl...
> doen's the command assume the values of the connection?
>
> "Miha Markic [MVP C#]" <miha at rthand com> wrote in message
> news:BF1AF47C-DB6D-45A9-B244-804165B83369@microsoft.com...
>> Try adjusting Command's timeout.
>>
>> --
>> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
>> RightHand .NET consulting & development www.rthand.com
>> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>>
>> "Henrry Pires" <henrry.pires_a_acinet,pt> wrote in message
>> news:edn0QJnKHHA.3552@TK2MSFTNGP03.phx.gbl...
>>> Good Day to all.
>>>
>>>
>>>
>>> I have a store procedure that makes many queries, use cursors and some
>>> other complicated calculations. If I run it on Management Studio it
>>> takes around 3 minutes and work fine. But when I run it from VB.Net it
>>> gives me connection Timeout after only 30 seconds. I have configurate
>>> the connection timeout to all possible values. Even 0 seconds that means
>>> no timeout. What I'm doing wrong?
>>>
>>>

>>

>
>


  Reply With Quote
Old 29-12-2006, 09:27 AM   #5
Henrry Pires
Guest
 
Posts: n/a
Default Re: Connection TimeOut

Many thanks
"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:3A52908B-2F93-4AAA-BE70-2D9F3FD84B74@microsoft.com...
> Not for command execution. Connection timeout is amount of time for
> estabilishing a connection, not executing a command.
>
> --
> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
> RightHand .NET consulting & development www.rthand.com
> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>
> "Henrry Pires" <henrry.pires_a_acinet,pt> wrote in message
> news:eXtP$koKHHA.3424@TK2MSFTNGP02.phx.gbl...
>> doen's the command assume the values of the connection?
>>
>> "Miha Markic [MVP C#]" <miha at rthand com> wrote in message
>> news:BF1AF47C-DB6D-45A9-B244-804165B83369@microsoft.com...
>>> Try adjusting Command's timeout.
>>>
>>> --
>>> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
>>> RightHand .NET consulting & development www.rthand.com
>>> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>>>
>>> "Henrry Pires" <henrry.pires_a_acinet,pt> wrote in message
>>> news:edn0QJnKHHA.3552@TK2MSFTNGP03.phx.gbl...
>>>> Good Day to all.
>>>>
>>>>
>>>>
>>>> I have a store procedure that makes many queries, use cursors and some
>>>> other complicated calculations. If I run it on Management Studio it
>>>> takes around 3 minutes and work fine. But when I run it from VB.Net it
>>>> gives me connection Timeout after only 30 seconds. I have configurate
>>>> the connection timeout to all possible values. Even 0 seconds that
>>>> means no timeout. What I'm doing wrong?
>>>>
>>>>
>>>

>>
>>

>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off