Prerequisites
Before you connect, you must first do the following:- Connect a data source to your Connect AI account. See Sources for more information.
- Generate a Personal Access Token (PAT) on the Settings page. Copy this down, as it acts as your password during authentication.
Connect to Connect AI
In order to connect from Node.js to Connect AI via the SQL Server interface, you need the following information:- Server—tds.cdata.com
- Port—14333
- Database name—接続したいConnect AI データソースのConnection Name を入力します。例:Salesforce1
- Username—Connect AI のユーザー名を入力します。ユーザー名は、Connect AI の画面の右上に表示されています。例:
[email protected] - Password—Settings ページで生成したPAT を入力します。
- Update
userwith your Connect AI username. - Update
passwordwith the PAT you generated in the prerequisites. - Update
databasewith the name of the data source you created in the prerequisites. - Replace the
querywith your database query.