Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Alteryx Designer Cookbook

You're reading from   Alteryx Designer Cookbook Over 60 recipes to transform your data into insights and take your productivity to a new level

Arrow left icon
Product type Paperback
Published in Oct 2023
Publisher Packt
ISBN-13 9781804615089
Length 740 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Alberto Guisande Alberto Guisande
Author Profile Icon Alberto Guisande
Alberto Guisande
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Chapter 1: Inputting Data from Files 2. Chapter 2: Working with Databases FREE CHAPTER 3. Chapter 3: Preparing Data 4. Chapter 4: Transforming Data 5. Chapter 5: Data Parsing 6. Chapter 6: Grouping Data 7. Chapter 7: Blending and Merging Datasets 8. Chapter 8: Aggregating Data 9. Chapter 9: Dynamic Operations 10. Chapter 10: Macros and Apps 11. Chapter 11: Downloads, APIs, and Web Services 12. Chapter 12: Developer Tools 13. Chapter 13: Reporting with Alteryx 14. Chapter 14: Outputting Data 15. Index 16. Other Books You May Enjoy

DCM – setting up a connection

To be able to connect to data using credentials, DCM needs you to create a connection. A connection object is a combination of a data source and a set of credentials.

In this recipe, we’ll be creating a new connection using DCM capabilities.

Getting ready

We’ll prepare to do this using the following steps:

  1. If you’ve already enabled DCM on Alteryx Designer you can skip this next step, otherwise, you need to do it to make DCM available for you. To do so, go to Options → User Settings → Edit User Settings and from the DCM tab click on Enable DCM.
Figure 2.36: DCM options in User Settings

Figure 2.36: DCM options in User Settings

  1. Make sure DCM Optional is the selected value for DCM Mode and SDK Access Mode is set to Allow.
  2. Restart Alteryx Designer and you’ll be ready to work with DCM.

If you have access to Alteryx Server, you’ll be able to synchronize your local and remote connections with it.

Also, make sure you have access to at least one database from any of the technologies supported by Alteryx.

Important note

This synchronization process is manual and can only be triggered from Alteryx Designer.

How to do it…

We’ll set up the actual connection using the following steps:

  1. Go to File → Manage Connections.
Figure 2.37: Manage Connections menu

Figure 2.37: Manage Connections menu

A new window is displayed (yours might be blank).

Figure 2.38: DCM main window

Figure 2.38: DCM main window

  1. Click on Add Data Source at the top right of the new window, so the Select Technology option shows up.
  2. From the dropdown, select the type of technology you will be connecting to (see the complete list of tools and technologies supported by DCM here: https://help.alteryx.com/current/designer/dcm-designer):
Figure 2.39: Technology selection for new connections

Figure 2.39: Technology selection for new connections

For this recipe, we’ll be using Microsoft SQL Server Quick Connect, but feel free to select the technology you want. The steps will be the same – what will change is the data you need to enter to connect to that technology.

  1. Enter your connection’s specifics and click Save.
Figure 2.40: Setting up a SQL Server connection

Figure 2.40: Setting up a SQL Server connection

  1. Now, we need to link the credentials with the data source object to create a connection.
Figure 2.41: Linking credentials to a connection

Figure 2.41: Linking credentials to a connection

  1. Click on + Connect Credential and the panel will change, so you can select the type of credentials (Authentication Method) you’ll be using for this connection.
Figure 2.42: Selecting Authentication Method for linked credentials

Figure 2.42: Selecting Authentication Method for linked credentials

Depending on your selection, Alteryx will filter and show all credentials of the selected type for you to choose.

Select Username and password and you’ll see that a new field was added to the panel, with a dropdown to select from all existing username and password credentials.

Figure 2.43: Selecting the credentials

Figure 2.43: Selecting the credentials

  1. Select the one we created in recipe #3 (SQL SERVER System Administrator) and click on the Link button.
Figure 2.44: Linked credential

Figure 2.44: Linked credential

Now we have our connection ready to be used.

How it works…

DCM allows us to create credentials and data sources. Those objects can be individually administrated in a centralized secure space. The combination of a data source and a set of credentials gives us a connection object that we can use in our workflows without caring about logins and server names.

Important note:

If you use DCM, every change you make to a connection will be picked up by your workflows. So, for example, you need to change your password once (in DCM’s Connection Manager) and all workflows using that credential will get updated.

There’s more…

If you see the underlying XML within the workflow for your connections, you’ll notice the difference in how they’re stored and managed by Alteryx Designer.

Figure 2.45: Using DCM and without using DCM

Figure 2.45: Using DCM and without using DCM

See the complete list of tools and technologies supported by DCM here: https://help.alteryx.com/current/designer/dcm-designer

You have been reading a chapter from
Alteryx Designer Cookbook
Published in: Oct 2023
Publisher: Packt
ISBN-13: 9781804615089
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime