myCountsTableAdapter.Fill(myDataSet.myCounts);
My application actually connects to different systems during a run; on
some of these the default timeout is adequate, but on one system I get an
SQL exception that simply reports "Timeout expired". The default timeout
shows as "15" using this line of code.
Console.WriteLine("timeout = "
+ myCountsTableAdapter.Connection.ConnectionTimeout);
But this property is read-only; how can I change it?
Set the timeout in your connection string....
..., Connection Timeout=30,...
Check msdn for other ConnectionString keywords.
Willy.
JB
<...>
Kevin Yu
Microsoft Online Community Support
============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thanks again for guiding me in the right direction!