Reputation: 147
is it possible to make a connection between Office 365 to SQL database using Office scripts? something simillar to ADODB.Connection
in Excel VBA
Upvotes: 2
Views: 3118
Reputation: 1356
You can't connect directly to a database using Office Scripts. You can still get data from a database but the process would need to be a bit different:
fetch
to get the JSON and work with the data in Office Scripts.You can read more about using fetch with Office Scripts here
In addition to this type of process, you could also trying using something like PowerAutomate to query the database directly.
Upvotes: 3