C#‎

StiReport report = new StiReport();
report.Load("MyReport.mrt");
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(new StiSqlDatabase("MyDatabase", "new connection string"));


VB

Dim Report As New StiReport
Report.Load("MyReport.mrt")
Report.Dictionary.Databases.Clear()
Report.Dictionary.Databases.Add(New StiSqlDatabase("MyDatabase", "new connection string"))