I'm trying to auto-populate some raw data on a sheet in my google sheets file with a query.
It doesn't look like sheets has any built in functionality to do so like Microsoft Excel does.
Am I missing something? I found one add-on that has since been discontinued and no longer works called data everywhere: https://www.dataeverywhere.com/use-database-sheets
Is there something else that has replaced that?
This code works well: to connect Azure database and grab data from table
This is the sample code to how read data from a SQL Server instance and insert them in Google Sheet. The code creates a menu item to re-load data, and each time clears the content while it keeps the format.
You might want to have a look at this list of detailed article "the best 7 ways to connect MySQL to Google Sheets in 2020. Some of them require no code whatsoever and others are more technical, so that you can make a choice based on your needs and skills.
Here is the list of solutions (you'll find a presentation of each in the article):
I hope this thorough presentation will help you find a solution that will simplify your life with MySQL and help make you and your team more efficient and productive!
If you don't want to roll your own solution, check out SeekWell. It allows you to connect to databases and write SQL queries directly in Sheets.
A few other features:
Disclaimer: I made this.
As referred here, you can use the JDBC services of Google Apps Scripts. You will have to write a script that populates your spreadsheet with data from the JDBC service.
Read from the database
This example demonstrates how to read a large number of records from the database, looping over the result set as necessary.
Hope this helps!