IS there any way to set the connection timeout on a SQLDataAdapter? I want
to fill a dataset but I can't set any way to change the timeout.

TIA.

Jeffrey

Re: Connection Timeout on aSQLDataAdapter by Miha

Miha
Fri May 14 10:44:11 CDT 2004

Hi Jeffrey,

Did you try setting adapter.SelectCommand.CommandTimeout?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Jeffrey Bradshaw" <jeff@DontEvenBother.com> wrote in message
news:ujOX7XcOEHA.2480@tk2msftngp13.phx.gbl...
> IS there any way to set the connection timeout on a SQLDataAdapter? I want
> to fill a dataset but I can't set any way to change the timeout.
>
> TIA.
>
> Jeffrey
>
>



Re: Connection Timeout on aSQLDataAdapter by William

William
Fri May 14 11:05:16 CDT 2004

Hi Jeffrey:

Remember that there are two timeouts that you can deal with, the
connection's timeout property and the command's timeout property. The
connection's is read-only and can only be specified by setting it in the
connection string. The command you can set manually. You may want to
manipulate both but usually, if your connection times out, you have issues.

HTH,


Bill

www.devbuzz.com
www.knowdotnet.com

"Jeffrey Bradshaw" <jeff@DontEvenBother.com> wrote in message
news:ujOX7XcOEHA.2480@tk2msftngp13.phx.gbl...
> IS there any way to set the connection timeout on a SQLDataAdapter? I want
> to fill a dataset but I can't set any way to change the timeout.
>
> TIA.
>
> Jeffrey
>
>