ReportSource = _ReportInfo.Report;
LogOnInfo[0].ConnectionInfo.ServerName = _ReportInfo.LogonInfo.ServerName;
LogOnInfo[0].ConnectionInfo.DatabaseName = _ReportInfo.LogonInfo.DatabaseName;
LogOnInfo[0].ConnectionInfo.IntegratedSecurity = _ReportInfo.LogonInfo.IntegratedSecurity;
if (! _ReportInfo.LogonInfo.IntegratedSecurity)
{
LogOnInfo[0].ConnectionInfo.UserID = _ReportInfo.LogonInfo.UserId;
LogOnInfo[0].ConnectionInfo.Password = _ReportInfo.LogonInfo.Password;
}
The line that changes the server name take 30 seconds to run. Anyone know why this is?