M
michael sorens
I have used the visual designer to create a series of DataGridViews
populated from SQLServer data.
A typical call is:
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?
populated from SQLServer data.
A typical call is:
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?