Fix SQL Designer, support encrypted db passwords

This commit is contained in:
Jonathan Jenne
2023-09-22 09:42:56 +02:00
parent 06a3d735c3
commit 06f0179270
3 changed files with 120 additions and 89 deletions

View File

@@ -200,7 +200,7 @@ Public Class frmMain
Try
tslblstatus.BackColor = Color.Transparent
If ConfigManager.Config.ConnectionString <> String.Empty Then
_SQLServerConString = ConfigManager.Config.ConnectionString
_SQLServerConString = MSSQLServer.DecryptConnectionString(ConfigManager.Config.ConnectionString)
If _SQLServerConString.Contains("LOGIT_DMS") Then
_SQLServerConString.Replace("LOGIT_DMS", "DD_ECM")
Logger.Debug($"Replaced wrong Database in ConString ... ")
@@ -943,8 +943,9 @@ Public Class frmMain
},
.PlaceholdersManualPrefix = "CUST"
}
oForm.Show()
If oForm.ShowDialog() = DialogResult.OK Then
txtSQLValidation.EditValue = oForm.SQLCommand
End If
txtSQLValidation.EditValue = oForm.SQLCommand
End Sub
End Class