From 7dc03c9edc5e66c67733dbdf6a3fe3d07a8be782 Mon Sep 17 00:00:00 2001 From: Jesse Ostrander Date: Fri, 19 Mar 2021 19:43:34 -0400 Subject: [PATCH] Retain original LogonInfo object when overwriting credentials --- Source/CrystalReportsNinja/ReportProcessor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CrystalReportsNinja/ReportProcessor.cs b/Source/CrystalReportsNinja/ReportProcessor.cs index 0c558eb..2ac91f7 100644 --- a/Source/CrystalReportsNinja/ReportProcessor.cs +++ b/Source/CrystalReportsNinja/ReportProcessor.cs @@ -183,6 +183,7 @@ private void PerformDBLogin() TableLogOnInfo logonInfo = new TableLogOnInfo(); foreach (Table table in _reportDoc.Database.Tables) { + logonInfo = table.LogOnInfo; if (server != null) logonInfo.ConnectionInfo.ServerName = server;