I'm trying to effect a connection to an Excel spreadsheet using PB 11.2 to use the Excel data as retrievable look-up data. Sybase have published two documents that I could find. However they seem dated (2003/4).
For example, both papers explain to appropriately name the columns and the table from the spreadsheet for SQL, select the required columns and then choose 'Insert->name->define from the Excel menu bar to define the current workbook selection as a database table …’
However, there are no such menu selections from ‘Insert’ in my 2007 Excel. I can’t find any other way from Excel to define the spreadsheet as a DB table.
Moving to PowerBuilder, the paper says to select the ‘Configure ODBC toolbar item’ (add via Customize if it’s not on the toolbar). I can’t find such a toolbar item.
I have defined a connection by going to DB Profile, selecting ODB ODBC, New, entering a Profile Name, selecting ‘Excel Files’ as a Data Source, on the Test Connect for Preview selecting the .xlsx spreadsheet, and the connected is effected.
From the PowerBuilder DB Painter, I connect ok via ODB ODBC to the Excel file, but there is no table/data.