I see command timeout in the properties of the datasource and I even see it in the debugger but I cannot figure out how to set it.
I suspect this property is not exposed for us to be able to set from code?
This isn't a really big deal because I can set it in the report but more of a curiosity question.
Set command timeout programatically?
-
- Posts: 6364
- Joined: Tue Mar 20, 2018 5:34 am
Re: Set command timeout programatically?
Hello,
You can use the following code:
((StiSqlSource)report.Dictionary.DataSources["DataSourceName"]).CommandTimeout = yourValue;
Thank you.
You can use the following code:
((StiSqlSource)report.Dictionary.DataSources["DataSourceName"]).CommandTimeout = yourValue;
Thank you.
Re: Set command timeout programatically?
Hey, that's neat.
Thanks.
Thanks.
-
- Posts: 6364
- Joined: Tue Mar 20, 2018 5:34 am
Re: Set command timeout programatically?
Hello
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.