diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 099ccdb8..d5a493cb 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -1032,13 +1032,6 @@ begin ; if Parameters.WindowsAuth then FAdoHandle.ConnectionString := FAdoHandle.ConnectionString + 'Integrated Security=SSPI;'; - try - // Show up dynamic connection properties, probably useful for debugging - for i:=0 to FAdoHandle.Properties.Count-1 do - Log(lcDebug, 'OLE DB property "'+FAdoHandle.Properties[i].Name+'": '+String(FAdoHandle.Properties[i].Value)); - except - // Silence DLL errors, see issue #2741. - end; try FAdoHandle.Connected := True; FConnectionStarted := GetTickCount div 1000; @@ -1067,6 +1060,11 @@ begin FServerVersionUntouched := rx.Match[1]; rx.Free; FRealHostname := Parameters.Hostname; + + // Show up dynamic connection properties, probably useful for debugging + for i:=0 to FAdoHandle.Properties.Count-1 do + Log(lcDebug, 'OLE DB property "'+FAdoHandle.Properties[i].Name+'": '+String(FAdoHandle.Properties[i].Value)); + DoAfterConnect; // Reopen closed datasets after reconnecting