Hey
is there a possibility to change the connection string of a report before loading it?
I need to increase the timeout-time from the connection at some points (depending on which queries i execute) because some of them take quite long.
I want to pass the timeout with parameter to the script and let the script set the timeout of the mysql-query in the ConnectionString. Is there a possibility to do that?
Reagrds
Change ConnectionString from MySQL
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
Re: Change ConnectionString from MySQL
Hello,
You can use the following code:
Thank you.
You can use the following code:
Code: Select all
((StiMySqlDatabase)report.Dictionary.Databases["ConnectionName"]).ConnectionString = "";