Create a connection in Anaplan Data Orchestrator to import data from Microsoft SQL Server (MSSQL). Then use the connection to extract data and create a source dataset.
You must have an MSSQL instance. This can be hosted on premises or on a cloud platform. This could be Amazon Web Services (AWS), Azure, Google Cloud Platform (GCP), or any other cloud provider. The solution is also compatible with on-premises SQL Server deployments.
You also need to have a database user that has a password with at least read permission. Here is an example of how to create a new database user with read access:
USE {database name};
CREATE LOGIN {user name}
WITH PASSWORD = '{password}';
CREATE USER {user name} FOR LOGIN {user name};
EXEC sp_addrolemember 'db_datareader', '{user name}';
EXEC sp_addrolemember '{role name}', '{user name}';
Create a connection to MSSQL
The Microsoft SQL Server (MSSQL) connector also supports connections to Azure SQL.
You will need your MSSQL or Azure credentials. View the MSSQL or Azure documentation for more information about your credentials.
To create a connection:
- Select Data Orchestrator from the top-left navigation menu.
- Select Connections from the left-side panel, then select Create connection.
- Select Microsoft SQL Server (MSSQL) and then select Next.
If you can't find the connector, enter a search term in the Find... field. - On the Connection details page, enter a Name and Description for your connection, and then select Next.
- On the Connection credentials page, enter your MSSQL credentials, and then select Next.
See the table below in the Connection credential fields section for more information about the fields. - After the connection test is complete, select Done.
Connection credential fields
This table provides more information fields that display on the Connection credentials page.
Connection credentials fields | Description |
SSH Tunneling | This feature lets you securely connect to MSSQL instances with a Secure Shell (SSH) tunnel. It also adds another layer of security. SSH tunneling options:
|
Username | The user name required to authenticate. |
Password | The password required to authenticate. |
Host | The MSSQL host domain. The host is provided by the administrator of your MSSQL or Azure SQL instance. |
Port | The MSSQL port number. The port number is provided by the administrator of your MSSQL or Azure SQL instance. The port number is typically |
Database | The MSSQL database name. |
Schemas | The MSSQL database schema. This field is optional. You can enter a single schema name, or leave the field empty. If the field is empty, Data Orchestrator retrieves all schemas. |
Extract data from the MSSQL connection
You can extract data from the MSSQL connection to add source data to Data Orchestrator. The data extract creates a source dataset.
To extract data:
- Select Data Orchestrator from the top-left navigation menu.
- Select Source data from the left-side panel.
- Select Add data > From connection.
- On the Dataset details page, enter these details and select Next:
- Connection: Select the MSSQL connection you want to base the dataset on.
- Dataset name: Create a name for the dataset.
- Description: Enter a description about the dataset.
- Namespace: Select a namespace. This is the MSSQL schema for the specific database defined for the connection.
- Path name: Select a path name. This is the MSSQL table name.
- On the Choose an upload type page, enter these details and select Next:
- Select the Load type:
- Full replace: Completely replaces the current loaded data with the new data.
- Append: Adds the new data to the end of the current table.
- Incremental: Takes the new data and incrementally updates the contents of the dataset based on matching the primary key fields. Exiting data is updated and new data is appended.
- Select the columns to import.
- Select the Load type:
- Select Create in the confirmation dialog.