Page 1 of 1

Change ConnectionString from MySQL

Posted: Tue Mar 26, 2013 2:36 pm
by mietzekotze
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

Re: Change ConnectionString from MySQL

Posted: Wed Mar 27, 2013 5:48 am
by Alex K.
Hello,

You can use the following code:

Code: Select all

((StiMySqlDatabase)report.Dictionary.Databases["ConnectionName"]).ConnectionString = "";
Thank you.