We are proud to share our inclusion in the 2024 Gartner Magic Quadrant for Data Integration Tools. We believe this recognition reflects the differentiated business outcomes CData delivers to our customers.
Get the Report →How to create Visio diagrams from AlloyDB Data
Automatically update AlloyDB data with the changes you make to Visio master shapes.
Automate the process of entering data into Visio diagrams and keeping your diagrams up to date with the CData ODBC Driver for AlloyDB. The driver surfaces AlloyDB data as an ODBC data source that can be accessed by applications with built-in ODBC support like Microsoft Office. This article shows how to create a simple diagram to start brainstorming about Visio projects linked to AlloyDB data.
Connect to AlloyDB as an ODBC Data Source
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.
The following connection properties are usually required in order to connect to AlloyDB.
- Server: The host name or IP of the server hosting the AlloyDB database.
- User: The user which will be used to authenticate with the AlloyDB server.
- Password: The password which will be used to authenticate with the AlloyDB server.
You can also optionally set the following:
- Database: The database to connect to when connecting to the AlloyDB Server. If this is not set, the user's default database will be used.
- Port: The port of the server hosting the AlloyDB database. This property is set to 5432 by default.
Authenticating with Standard Authentication
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.
Authenticating with pg_hba.conf Auth Schemes
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.
Authenticating with MD5 Authentication
This authentication method must be enabled by setting the auth-method in the pg_hba.conf file to md5.
Authenticating with SASL Authentication
This authentication method must be enabled by setting the auth-method in the pg_hba.conf file to scram-sha-256.
Authenticating with Kerberos
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.
Connect AlloyDB Data to Diagrams
Follow the steps below to use the Data Selector Wizard to import data into your diagram.
- Open Visio and click File -> New. Open the Brainstorming template.
- On the Data tab, click Custom Import and select Other OLEDB or ODBC data source.
- Select the ODBC option and select ODBC DSN.
- Select the DSN for AlloyDB, select the table you want to import, and finish the wizard. This article uses Orders as an example.
Link AlloyDB Entities to Shapes
Follow the steps below to create a simple diagram that shows how to create shapes from your data, one of the ways to link AlloyDB entities to shapes:
- Click Brainstorming Shapes and drag a main topic onto the drawing page. Enter Orders as the text of the main topic.
- Click Topic.
- Select a row in the External Data window and drag it onto the drawing page.
- Right-click the Topic shape and click Data -> Edit Data Graphic.
- Click New Item.
- In the Data Field menu, select a column. In the Displayed As menu, select how to display them.
- Drag a few other AlloyDB entities onto the drawing page and add association lines back to the main topic, Orders. New topics have the same configuration: Numeric columns displayed in data bars stand out in contrast to other Orders entities.
You can refresh your diagram from the Data tab, synchronizing your shapes with the external AlloyDB data.