cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Export commands and output of the Databricks Notebook to MS Excel

AJ270990
Contributor II

I have a Databricks notebook and I have several headers, SQL commands and their output. I am currently copying the output and SQL commands manually to excel for a report. How can I reduce the manual work of copy pasting from Notebook to excel and automate it?

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz
Community Manager
Community Manager

Hi @Abhishek Jain​, You can download a query result as a Excel file. You can download up to approximately 64,000 rows to an Excel file.

  1. Click the kebab context menu for a tab in the results pane.
  2. Select Download as [Excel] File.

imageIf you cannot download a query, your administrator has disabled download for your Databricks SQL instance.

View solution in original post

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @Abhishek Jain​, You can download a query result as a Excel file. You can download up to approximately 64,000 rows to an Excel file.

  1. Click the kebab context menu for a tab in the results pane.
  2. Select Download as [Excel] File.

imageIf you cannot download a query, your administrator has disabled download for your Databricks SQL instance.

Kaniz
Community Manager
Community Manager

Hi @Abhishek Jain​ , We haven’t heard from you since the last response from me and I was checking back to see if my suggestions helped you.

Or else, If you have any solution, please share it with the community, as it can be helpful to others.

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!