I see in the Excel documentation the QueryTables collection and ODBCConnection object, but not how to use them in powershell.
I want to create a new workbook with a single worksheet, connect to a System DSN (doesn't need login/passowrd), and run "SELECT * FROM someTable" and have the results go into the worksheet. Excel is 2007; powershell is 2.0; the odbc connection is a system DSN.
Thanks