1. A method for exposing the contents of a workbook as a server data source, the method comprising: receiving a database query directed to a range within a workbook; in response to the query, recalculating the range, generating a database representation of the recalculated range, performing the requested query on the database representation of the recalculated range to obtain a query result, and transmitting the query result as a response to the database query.