Share via

Question about Databricks data load

Dong, Jacky 21 Reputation points
2021-12-21T02:52:12.78+00:00

Hello MS support:

I have 2 question about databricks data ETL via ADF.

  1. I have a Excel file, how can I load the Excel file automatically from internal network to databricks?
  2. I have a data table in databricks, is that possible download it to local sql server database?

Thanks,
Jacky

Azure Databricks
Azure Databricks

An Apache Spark-based analytics platform optimized for Azure.

Microsoft 365 and Office | Excel | For business | Windows

Answer accepted by question author

Martin Cairney 2,276 Reputation points
2021-12-21T03:16:56.547+00:00

For the first part, does this post answer your question about Excel files (https://learn.microsoft.com/en-us/answers/questions/239732/excel-as-a-source-in-adf.html)?

From an on-premises source you may also need a Data Gateway installed (https://learn.microsoft.com/en-us/data-integration/gateway/)

You can then save the content to Azure Data Lake Storage in Parquet format which Databricks will then be able to access.

For the second part, look at the SQL connector available in Azure Databricks (https://learn.microsoft.com/en-us/azure/databricks/data/data-sources/sql-databases) and then update your notebook code so that when you populate the table in Databricks you also write a copy of the dataframe to SQL Server.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 91,866 Reputation points
    2021-12-22T08:23:59.83+00:00

    Hello @Dong, Jacky ,

    In additional to @Martin Cairney response.

    Note: You can connect to SQL databases using JDBC and Apache Spark connector.

    If you are using JDBC connector you no need to import any packages.

    Reference: SQL databases using JDBC

    If you are using Apache Spark Connector you need to import the below packages as per the Databricks Runtime which you are using:

    158256-image.png

    Reference: SQL Databases using the Apache Spark connector and Process & Analyze SQL Server Data in Azure Databricks

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.