Reputation: 19183
I am using AdomdConnection connection class to connect to the Cube. I am using following code.
using (var conn = new AdomdConnection(ConnString))
{
conn.Open();
var cube = conn.Cubes[name];
//Do something
conn.Close();
}
AdomdConnection.ConnectionTimeout Property does not have setter property.
The default value for connectionTimeOut property is 0, which sets the time to infinite.
I have two questions:
I looked into this similar tread but did not found it useful.
Thank you
Upvotes: 3
Views: 1624
Reputation: 12769
The documentation states this for AdomdConnection.ConnectionTimeout
Gets the time to wait for a connection to be established before the AdomdConnection stops trying to connect and generates an error.
So that means the timeout just talking to the server.
If you want a timeout when your running an actual command use the AdomdCommand.CommandTimeout
property.
Gets or sets the time to wait for a command to run before the AdomdCommand stops trying to run the command and generates an error.
Both can be set with the connection string.
Upvotes: 2