mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
14 lines
363 B
PowerShell
14 lines
363 B
PowerShell
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
|
|
|
ConvertFrom-ExcelToSQLInsert People .\testSQLGen.xlsx
|
|
|
|
ConvertFrom-ExcelData .\testSQLGen.xlsx {
|
|
param($propertyNames, $record)
|
|
|
|
$reportRecord = @()
|
|
foreach ($pn in $propertyNames) {
|
|
$reportRecord += "{0}: {1}" -f $pn, $record.$pn
|
|
}
|
|
$reportRecord +=""
|
|
$reportRecord -join "`r`n"
|
|
} |