Corretti errori di import
This commit is contained in:
parent
22f6432535
commit
803e6ae9dc
@ -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
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user