I am using the Get-ACEData cmdlet to extract data from a simple ACCESS database.
I have all the required ACE modules etc. installed and confirmed working properly.
The database I am trying to extract data from is extremely simple: 1 table only and about 5 fields. I use the statement (‘Table1’ is the actual name of the only table in DBName, and DBName is of type .mdb):
Gate-ACEData -Filepath DBName -Table Table1 -Query ‘Select LName,FName,DOB from Table1’ | ??? I am lost !!!
I suppose (perhaps incorrectly) that when the Get-ACEData statement is executed, it generates into the pipeline some object of type DATASET (is this = type ACCESS database?). I would like to transform it into a simple CSV file for subsequenet processing.
But I cannot seem to get Export-CSV, ConvertTo-CSV, etc. cmdlets to work. I must be missing something. Or perhaps there is some function somewhere that can do the job. Does such a cmdlet/function exist, or do I have to “go lower” and resort to using ADO.Net to manipulate the ACCESS DB with additional PS code?
Would be grateful for any hints, tips or advice.
Thanks.