IPentahoConnection.MDX_DATASOURCE,
"jdbc:hsqldb:hsql://localhost:9001/sampledata; Catalog=" + file.toURI().toString(), "mondrian", "sa", "",
session, this ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
try {
IPentahoResultSet results = connection.executeQuery( "select * from DEPARTMENT_MANAGERS" ); //$NON-NLS-1$
Object[][] columnHeaders = results.getMetaData().getColumnHeaders();
for ( int row = 0; row < columnHeaders.length; row++ ) {
for ( int col = 0; col < columnHeaders[0].length; col++ ) {
outputStream.write( columnHeaders[row][col].toString().getBytes() );
outputStream.write( ",".getBytes() ); //$NON-NLS-1$