From 5abb79b0663f409d0a5cf5d3e552ca6bd9c83b01 Mon Sep 17 00:00:00 2001 From: KammM Date: Mon, 21 Oct 2024 17:39:19 +0200 Subject: [PATCH] Import-FileContentToDB: Fixed issues with data Seperator --- .../Import-FileContentToDB.ps1 | Bin 162782 -> 162784 bytes .../Import-FileContentToDB_History.txt | 8 +++++++ .../Import-FileContentToDB_Settings.ini | 22 +++++++++++++----- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/current/Import-FileContentToDB/Import-FileContentToDB.ps1 b/current/Import-FileContentToDB/Import-FileContentToDB.ps1 index e5997eb96a8617e9fa5ef858b67c6c8f1bfa4427..1fdb3ccd57f242ef994c5293204822123664731b 100644 GIT binary patch delta 38 ucmccjo%6wW&JA5G%tj1`lY3cG84a61vuyv&!g&1!vjT(e_S0_}h5G # # For future use.... # +# Option is unavailable in Bulk Insert! # # Example: %CellValue% # #--------------------------------------------------------------------------------------------------# # Third Parameter: # @@ -107,10 +108,18 @@ DBConnString = "Data Source=S-ZLSDMS-DB1\;Initial Catalog=DD_ECM\;User Id=DD_ECM #--------------------------------------------------------------------------------------------------# # Fourth Parameter: # # Set the encoding type, the source files are written with. # +# Example: Default # # Example: ascii # +# Example: ansi # +# Example: bigendianunicode # +# Example: bigendianutf32 # +# Example: oem # +# Example: unicode # # Example: utf7 # # Example: utf8 # -# Example: unicode # +# Example: utf8BOM # +# Example: utf8NoBOM # +# Example: utf32 # #--------------------------------------------------------------------------------------------------# # Fifth Parameter: # # Set the line of the heading of the table. # @@ -126,10 +135,11 @@ DBConnString = "Data Source=S-ZLSDMS-DB1\;Initial Catalog=DD_ECM\;User Id=DD_ECM # You can set a very high number to guarantee everything will be imported. # # Example: 9999999 # #--------------------------------------------------------------------------------------------------# -# Eight Parameter: # -# Set the CSV value seperator or the XLSX tab name. # -# Example: \; # -# Example: XAP__Stammdaten_Adressen # +# Eight Parameter: # +# Set the CSV value seperator or the XLSX tab name (or a part of it). # +# Example: \; (.net RegEx is available) # +# Example: `n (Line Break in case of bulk Insert) # +# Example: XAP # #--------------------------------------------------------------------------------------------------# # Ninth Parameter: # # Set the path, where successful processed files should be moved to. #