Cognos Analytics, powered by IBM Watson®, empowers users to cleanse and establish connections with their data while creating visualizations. When integrated with CData Connect AI, users gain immediate, real-time connectivity between cloud-based data sources and Cognos Analytics, facilitating data management, visualization, analytics, and more. This article provides step-by-step guidance on connecting to SQL Server via CData Connect AI and subsequently analyzing SQL Server data within Cognos Analytics.
NOTE: These instructions require Cognos Analytics 11.2.4 or higher
CData Connect AI offers a dedicated cloud-to-cloud interface for SQL Server, enabling users to perform real-time analysis on SQL Server data within Cognos without the need to replicate data to a natively supported database. Equipped with built-in optimized data processing capabilities, CData Connect AI efficiently directs all supported SQL operations, including filters and JOINs, directly to SQL Server. This harnesses server-side processing to promptly provide the requested SQL Server data.
Configure SQL Server Connectivity for Cognos Analytics
Connectivity to SQL Server from Cognos Analytics is made possible through CData Connect AI. To work with SQL Server data from Cognos Analytics, we start by creating and configuring a SQL Server connection.
-
Log into Connect AI, click Sources, and then click Add Connection
👁 Adding a Connection
- Select "SQL Server" from the Add Connection panel
👁 Selecting a data source
-
Enter the necessary authentication properties to connect to SQL Server.
Connecting to Microsoft SQL Server
Connect to Microsoft SQL Server using the following properties:
- Server: The name of the server running SQL Server.
- User: The username provided for authentication with SQL Server.
- Password: The password associated with the authenticating user.
- Database: The name of the SQL Server database.
Connecting to Azure SQL Server and Azure Data Warehouse
You can authenticate to Azure SQL Server or Azure Data Warehouse by setting the following connection properties:
- Server: The server running Azure. You can find this by logging into the Azure portal and navigating to "SQL databases" (or "SQL data warehouses") -> "Select your database" -> "Overview" -> "Server name."
- User: The name of the user authenticating to Azure.
- Password: The password associated with the authenticating user.
- Database: The name of the database, as seen in the Azure portal on the SQL databases (or SQL warehouses) page.
SSH Connectivity for SQL Server
You can use SSH (Secure Shell) to authenticate with SQL Server, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).
SSH Connections to SQL Server in Password Auth Mode
To connect to SQL Server via SSH in Password Auth mode, set the following connection properties:
- User: SQL Server User name
- Password: SQL Server Password
- Database: SQL Server database name
- Server: SQL Server Server name
- Port: SQL Server port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Password"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHPassword: SSH Password
SSH Connections to SQL Server in Public Key Auth Mode
To connect to SQL Server via SSH in Password Auth mode, set the following connection properties:
- User: SQL Server User name
- Password: SQL Server Password
- Database: SQL Server database name
- Server: SQL Server Server name
- Port: SQL Server port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Public_Key"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHClientCret: the path for the public key certificate file
👁 Configuring a connection (Salesforce is shown)
-
Click Save & Test
-
Navigate to the Permissions tab in the Add SQL Server Connection page and update the User-based permissions.
👁 Updating permissions
Add a Personal Access Token
When connecting to Connect AI through the REST API, the OData API, or the Virtual SQL Server, a Personal Access Token (PAT) is used to authenticate the connection to Connect AI. It is best practice to create a separate PAT for each service to maintain granularity of access.
-
Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
-
On the Settings page, go to the Access Tokens section and click Create PAT.
-
Give the PAT a name and click Create.
👁 Creating a new PAT
-
The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the connection configured and a PAT generated, you are ready to connect to SQL Server data from Cognos Analytics.
Connect to SQL Server from Cognos Analytics
The steps below outline connecting to CData Connect AI from Cognos Analytics to analyze live SQL Server data.
Download and install the CData Connect AI JDBC driver
-
Open the Integrations page of CData Connect AI.
-
Search for and select JDBC.
-
Download and run the setup file.
-
When the installation is complete, copy the JAR file (cdata.jdbc.connect.jar) from the installation directory (e.g., C:\Program Files\CData\JDBC Driver for CData Connect\lib) to the "drivers" folder in your Cognos Analytics installation directory.
Configure the Connection to CData Connect AI
- Open IBM Cognos and navigate to Manage > Data server connections.
- Click the icon to add a data server.
- Select CData Connect AI.
- Set JDBC URL to the appropriate connection string. For example:
jdbc:connect:AuthScheme=Basic;user=username;password=PAT;
- Set Driver class name to "cdata.jdbc.connect.ConnectDriver"
- Create and store authenticate credentials by selecting an authentication method
- Set Username to your CData Connect AI username (e.g., [email protected])
- Set Password to the PAT you previously generated.
- Click Test connection to confirm that the connection succeeds.
👁 Connecting to CData Connect AI from Cognos Analytics
At this point, you are ready to analyze and visualize SQL Server data in Cognos Analytics. For more information about using Cognos Analytics, please refer to the Cognos Analytics documentation.
Live Access to SQL Server Data for Analytics
Now you have a direct, cloud-to-cloud connection to live SQL Server data from Cognos Analytics. You can create new visualizations, build reports, and more — without replicating SQL Server data.
Try CData Connect AI and get real-time data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications.