![]() |
VOOZH | about |
The CData ODBC Driver for IBM Cloud Object Storage can be used from any platform or development technology that supports ODBC, including PowerBuilder. This article shows how to connect to IBM Cloud Object Storage data and execute queries from the Database Painter and controls such as the DataWindow.
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
If you do not already have Cloud Object Storage in your IBM Cloud account, follow the procedure below to install an instance of SQL Query in your account:
There are certain connection properties you need to set before you can connect. You can obtain these as follows:
To connect with IBM Cloud Object Storage, you need an API Key. You can obtain this as follows:
If you have multiple accounts, specify the CloudObjectStorageCRN explicitly. To find the appropriate value, you can:
You can now set the following to connect to data:
When you connect, the connector completes the OAuth process.
Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for IBM Cloud Object Storage. In the Database Painter, you can use wizards and the UI to work with IBM Cloud Object Storage data.
You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve IBM Cloud Object Storage data into a DataWindow. You can add the following code to the open method:
SQLCA.DBMS = "ODBC" SQLCA.DBParm = "ConnectString='DSN=CData IBMCloudObjectStorage Source'" CONNECT USING SQLCA; dw_objects.SetTransObject(SQLCA); dw_objects.Retrieve();
Download a free trial of the IBM Cloud Object Storage ODBC Driver to get started:
Download NowLearn more:
👁 IBM Cloud Object Storage IconThe IBM Cloud Object Storage ODBC Driver is a powerful tool that allows you to connect with live data from IBM Cloud Object Storage, directly from any applications that support ODBC connectivity.
Access IBM Cloud Object Storage data like you would a database - read, write, and update IBM Cloud Object Storage IBMCloudObject, etc. through a standard ODBC Driver interface.