I've set up a Heroku Postgres database on my app using the Hobby-basic tier, and successfully inserted some rows into my tables, which I can verify through the CLI.
Now I'd like to use Excel to explore the contents of those tables.
From the documentation I can find, it seems I should be able to...
Install the Ngpsql data provider for ProgreSQL (version 4.0.10 - later versions are not compatible with Excel apparently)
Select Data > Get Data > From Database > From PostgreSQL Database
Provide the hostname and database name given on the Credentials tab of data.heroku.com
Click OK, and enter my username and password from that same credentials page
Unfortunately, I have yet to accomplish this successfully.
If I enter the server exactly as listed on the credentials page,
eg.
ec2-xx-xxx-xx-xx.xxx.amazon.comI get:
Unable to connect
We encountered an error while trying to connect.
Details: "An error happened while reading data from the provider: 'The remote certificate is invalid according to the validation procedure."
If instead I annotate that hostname with
postgres://in front, I'm able to reach a dialog to enter my username and password credentials, which I again paste from the Heroku page. But then I get a similar error:Details: "An error happened while reading data from the provider: 'No such host is known'"
I've also tried appending :PORT at the end, where PORT stands for the port number provided on the Heroku Postgres Credentials tab, with the same results. And I tried pasting the whole URI from the credentials tab, but Excel complains that the hostname must be at most 128 characters.
I'm sure I must be doing something silly like providing the host name in the wrong format or with the wrong protocol, but I haven't found documentation of the right string to use, and the error messages are not yielding strong leads.
Browsing past Q&A, I found this, which I thought might be applicable if PowerBI and Excel use a similar implementation, but the connection string described in the link does not appear to be accepted by Excel. (It says "The supplied server or database name is invalid.")
Can you recommend ways that I can view my data, or other troubleshooting steps I should try?