I found he issue with this. The query simply didn't understand the column names.
I thought that setting HDR=Yes
meant that the oledb
would read the first row headers, hence know them. But it wasn't until I added a schema.ini
file that I managed to query in this way.