Change SQL connection dynamically (data sources)
Posted: Wed Jan 15, 2014 10:22 am
Hi,
I want to change the SQL Connection (that is already exists in the mrt file) dynamically by .Net code.
I tried:
report.Dictionary.DataSources.Clear();
report.Dictionary.DataSources.Add(new StiSqlSource("DBConnection", hhh.ConexaoAtiva.ConnectionString));
But not work.
Could you help-me?
Thanks
Rafael Mello
I want to change the SQL Connection (that is already exists in the mrt file) dynamically by .Net code.
I tried:
report.Dictionary.DataSources.Clear();
report.Dictionary.DataSources.Add(new StiSqlSource("DBConnection", hhh.ConexaoAtiva.ConnectionString));
But not work.
Could you help-me?
Thanks
Rafael Mello