Corretti errori di import

This commit is contained in:
Gaetano Savo 2025-06-06 12:21:36 +02:00
parent 22f6432535
commit 803e6ae9dc
3 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ $config = @{
# DbHostOutput = "DATABASE_PDC_LOCALE" # DbHostOutput = "DATABASE_PDC_LOCALE"
# DbHostOutput = "testbes.armundia.com" # DbHostOutput = "testbes.armundia.com"
DbHostInput = "bfdskrepsei01c.sysfideuram.sysbancafideuram.it" DbHostInput = "bfdskrepsei01c.sysfideuram.sysbancafideuram.it"
DbHostOutput = "testbes.armundia.com" DbHostOutput = "DATABASE_PDC_LOCALE"
DbName = "C6StampeCentralizzate" DbName = "C6StampeCentralizzate"
# Directory di log # Directory di log

View File

@ -41,6 +41,7 @@ try {
-Database $env:dbName ` -Database $env:dbName `
-Username $env:dbUser ` -Username $env:dbUser `
-Password $env:dbPassword ` -Password $env:dbPassword `
-TrustServerCertificate `
-Query $Query -Query $Query
if ($result) { if ($result) {

View File

@ -49,7 +49,7 @@ try {
# Get column names from CSV # Get column names from CSV
$columns = $data[0].PSObject.Properties.Name $columns = $data[0].PSObject.Properties.Name
$columnList = $columns -join "," $columnList = ($columns | ForEach-Object { "[$_]" }) -join ","
# Process each row # Process each row
foreach ($row in $data) { foreach ($row in $data) {