![]() |
VOOZH | about |
The CData Excel Add-In for AlloyDB provides formulas that can edit, save, and delete AlloyDB data. The following three steps show how you can automate the following task: Search AlloyDB data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as AlloyDBConnection1, or a connection string. The connection string consists of the required properties for connecting to AlloyDB data, separated by semicolons.
The following connection properties are usually required in order to connect to AlloyDB.
You can also optionally set the following:
Standard authentication (using the user/password combination supplied earlier) is the default form of authentication.
No further action is required to leverage Standard Authentication to connect.
There are additional methods of authentication available which must be enabled in the pg_hba.conf file on the AlloyDB server.
Find instructions about authentication setup on the AlloyDB Server here.
This authentication method must be enabled by setting the auth-method in the pg_hba.conf file to md5.
This authentication method must be enabled by setting the auth-method in the pg_hba.conf file to scram-sha-256.
The authentication with Kerberos is initiated by AlloyDB Server when the ∏ is trying to connect to it. You should set up Kerberos on the AlloyDB Server to activate this authentication method. Once you have Kerberos authentication set up on the AlloyDB Server, see the Kerberos section of the help documentation for details on how to authenticate with Kerberos.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM Orders WHERE ShipCountry = '"&B6&"'","User="&B1&";Password="&B2&";Database="&B3&";Server="&B4&";Port="&B5&";Provider=AlloyDB",B7)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for AlloyDB to get started:
Download NowLearn more:
👁 AlloyDB IconThe AlloyDB Excel Add-In is a powerful tool that allows you to connect with live AlloyDB data, directly from Microsoft Excel.
Use Excel to read, write, and update AlloyDB 0, etc. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!