add to exported functions, formatting, fix typo.

This commit is contained in:
Roy Ashbrook
2021-11-04 20:54:51 -04:00
parent 85f2433ffc
commit 7a8bbb9771
3 changed files with 5 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ function Invoke-ExcelQuery {
[String] $Query # var name consistent with Invoke-Sqlcmd
)
$FullName = (Get-ChildItem $Path).FullName
Invoke-ExcelQuery `
Read-OleDbData `
-ConnectionString "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=$FullName;Extended Properties='Excel 12.0 Xml;HDR=NO;IMEX=1;'" `
-SqlStatement $Query
}