![]() |
VOOZH | about |
The CData Excel Add-In for Lakebase provides formulas that can edit, save, and delete Lakebase data. The following three steps show how you can automate the following task: Search Lakebase data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as LakebaseConnection1, or a connection string. The connection string consists of the required properties for connecting to Lakebase data, separated by semicolons.
To connect to Databricks Lakebase, start by setting the following properties:To authenicate using OAuth client credentials, you need to configure an OAuth client in your service principal. In short, you need to do the following:
For more information, refer to the Setting Up OAuthClient Authentication section in the Help documentation.
To authenticate using the OAuth code type with PKCE (Proof Key for Code Exchange), set the following properties:
For more information, refer to the Help documentation.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM Orders WHERE ShipCountry = '"&B6&"'","DatabricksInstance="&B1&";Server="&B2&";Port="&B3&";Database="&B4&";InitiateOAuth="&B5&";Provider=Lakebase",B7)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for Lakebase to get started:
Download NowLearn more:
👁 Lakebase IconThe Lakebase Excel Add-In is a powerful tool that allows you to connect with live Lakebase data, directly from Microsoft Excel.
Use Excel to read, write, and update Lakebase 0, etc. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!