Fix Base64 Falsche Stelle
This commit is contained in:
@@ -255,10 +255,6 @@ function Get-SingleInputFile
|
||||
return $files[0]
|
||||
}
|
||||
|
||||
$SqlPasswordEncode = [System.Text.Encoding]::UTF8.GetString(
|
||||
[System.Convert]::FromBase64String($Config.SqlPassword)
|
||||
)
|
||||
|
||||
function Invoke-SqlTopOneQuery
|
||||
{
|
||||
param(
|
||||
@@ -269,6 +265,10 @@ function Invoke-SqlTopOneQuery
|
||||
[string]$Belegnummer
|
||||
)
|
||||
|
||||
$SqlPasswordEncode = [System.Text.Encoding]::UTF8.GetString(
|
||||
[System.Convert]::FromBase64String($Config.SqlPassword)
|
||||
)
|
||||
|
||||
Write-Log "Starte SQL-Abfrage mit Parameter $($Config.SqlParameterName) = '$Belegnummer'..." "INFO"
|
||||
|
||||
$connectionString = "Server={0};Database={1};User ID={2};Password={3};" -f `
|
||||
|
||||
Reference in New Issue
Block a user