Google Data Studio JDBC connection to PostgreSQL integration with Sheets? - postgresql

Google Apps Script JDBC doesn't support a connection to PostgreSQL directly but Google Data Studio supports a connection to PostgreSQL to pull data and build reports. I've also heard they support a low-key export to .csv option. Is it then possible to exploit the Data Studio Service in Google Apps Script to populate Google Sheets with that data, effectively creating a workaround?
All I need is a one-way access from PostgreSQL into Google Sheets by means of Google Apps Script, I do NOT expect to import anything back into my database.

Looking at the reference documentation, the built-in Apps Script service for DataStudio does not allow you to pull data from a connected data source. It can be used to create connectors but its does not allow direct access to connected data sources.
However, you can try creating a custom API or server-less mirco-service in a language that supports PostgreSQL, and then expose that service as HTTP endpoints that you can call via URLFetchApp. You can leverage Google Cloud Functions to do this and write the mirco-service in either back-end Javascript(Node.js), Python or Go. This approach will take you well-outside the bounds of your typical GAS script, but it is a viable option.

Related

How to make The Flutter Application online

i have question when someone finish his flutter app with nodjs backend how can i make the application online like when u store queries in DB every body can reach the DB
like firebase but other platforms
I think you are asking how to set up a backend. You can use a server from cloud providers like google cloud platform /AWS /Oracle cloud or you can use a hosting provider like hostinger. Then you can upload your backend (Nodejs) code there.
If you plan to use a cloud prvider like GCP, AWS, Oracle cloud there are free compute machines awailable for startups. At first there is a bit setup to do, which you can easily do by waching a youtube tutorial.

Trying to get data from Google Cloud SQL in Flutter

I'm making a Flutter app with a login page, and I've been trying to query data from a Google Cloud MySQL server and serve it to my app. I was able to replicate the result I want in python using bigquery but I need something like that but in a dart/flutter version(any other ways work too as long as the result is the same)
Any help would be really appreciated!
It is not recommended to connect to the Cloud SQL databases directly over the internet from the client application. So one should avoid connecting to the Cloud SQL database directly from the Flutter Application. In this case, it would be a good idea to create an API endpoint to do the operations in Cloud SQL and hit that endpoint from the Flutter Application.
To achieve the above, we can follow these steps:
Deploy a Http Cloud Functions which connects to the Cloud SQL
database
In this step we have to deploy a Http Cloud Functions and from the Cloud Functions we can connect to the Cloud SQL database. Inside the Cloud Functions we can do the operations on the Cloud SQL database. This document explains how to connect to Cloud SQL from Cloud Functions.
Call the Http Cloud Functions URL from the Flutter Application
After deploying the Cloud Functions, we will get a unique URL for it, which looks like this https://GCP_REGION-PROJECT_ID.cloudfunctions.net/FUNCTION_NAME. We have to call this URL from the Flutter Application. This blog explains how to call the Cloud Functions URL from the Flutter Application.

Does Amazon services support on-premise hosting?

We intend to develop a enterprise Bot using amazon lex that will fetch response from a SQL server, and display result along with visual presentation. Does Lex support on premise deployment?
Will there be any challenges in using Lex vs Google Dialogflow (formerly known as api.ai)?
Please suggest.
The bot agent you will develop that will reside on AWS, you can access it on AWS Lex console and you cannot have it on-premise.
You can, however, use webhooks which you can have on-premise.
You can use amazon-lex to understand user query and match intent, once the intent is matched, you can perform the operations using if-else conditions and get data from your SQL server.
This way none of your data will be on AWS.

Connect to backend of VSO

Is there a way to get the server info of my VSO account and access using SQL Server?
I've tried logging in using the URL
{account}.visualstudio.com
But I got a sever not found error
No, the back-end databases are SQL Azure instances, different from the TFS on-premise databases. I cannot see MS ever giving you access to the database - maybe the data, but not the database.
You can only use the API (old and new REST) and Power BI tools to perform queries.
If you have a specific problem you are trying to solve, post it as a new question because it may be possible without database access.

Is it possible to not use Windows Authentication w/ a SQL Server Filestream store and using streaming access to a file within it?

Everything I've seen and experienced so far suggests that you must use Windows Authentication if you want to access a file via Win32 from within the a databases filestream store but is it possible to use jsut SQL authentication somehow?
No, you have to use Windows Authentication.
See the official team Web Log for Microsoft Customer Service and Support (CSS) SQL Support:
How It Works: File Streams Requires Integrated Security (Windows Authentication)