> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skypoint.ai/llms.txt
> Use this file to discover all available pages before exploring further.

#  

# Connecting to SQL Server

Microsoft SQL Server is a proprietary relational database management system (RDBMS) by Microsoft, built to efficiently store and retrieve data for diverse applications. It supports transaction processing, BI, and analytics, scaling from single machines to large systems. SQL Server 2022 introduces features like Azure-based disaster recovery, Synapse Link, and enhanced scalability, ensuring performance, data integrity, and seamless business operations.

SkyPoint AI Platform (AIP) integrates with SQL Server via an inbuilt connector, enabling centralized data management, streamlined operations, and advanced analytics. This integration breaks data silos, supports direct data operations, and enhances governance for improved compliance and insights, providing a secure and efficient data management solution.

This document will guide you through the process of connecting SQL Server to the skyData.

## Prerequisite

You need the following details to configure and import data using the <a href="https://www.microsoft.com/en-in/sql-server/sql-server-2022" target="_blank">SQLServer⇗</a> connector:

* Server name
* Database name
* Port number
* Username
* Password

## To import data using the SQL Server connector

Follow the below steps to create and configure a new dataflow for the SQL Server import connector:

1. Navigate to **Dataflow > Imports**.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlservernewdataflow.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=78fa63fc309cbdcfd57e4d68057ba1ea" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlservernewdataflow.png" />

2. Click **New dataflow** as indicated by an arrow.

The **Set dataflow name** page appears.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlserversetdataflowname.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=9d1e89b53e49cb82483a1230398a430a" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlserversetdataflowname.png" />

3. Enter the desired name for the dataflow in the **Name** text field.
4. Click **Next** to proceed.

The **Choose connector** page appears.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlserverchooseconnector.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=d9377acbb29b9278f472b93a4953af70" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlserverchooseconnector.png" />

## Add SQL Server connector

1. On the **Choose Connector** page, use the **Search** feature to locate and select the **SQL Server** Connector.
2. Enter the **Display Name** for your dataflow in the provided text field.
3. Optionally, add a **Description** in the designated text area.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlserverkeydisplayname.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=344cbc3aeb4d216cbda264d7c1c9a707" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlserverkeydisplayname.png" />

4. Click **Next** to proceed.

The **Configuration** page appears.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlserverconfigure.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=6926a3ba83bf0b009e2aa384d8dde3bb" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlserverconfigure.png" />

## Connect to the SQL Server account

1. Fill in the required details on the Configuration page.
2. Click **Connect**.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlserverconfigureconnect.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=4896031f092c0d67e201e4d02685ff0f" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlserverconfigureconnect.png" />

Once the connection is established, the connector can be used to import data from SQL Server tables.

3. Scroll down to the **Table Details** section, select the checkboxes for the tables you wish to import, and use the dropdown menu to label them as either **Data** or **Metadata.**

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlservertableone.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=d74559c0fa2aeb4d1f58ce8446e7a72b" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlservertableone.png" />

<Note>
  By default, all tables in the **Table Details** section are selected. You can choose to import only specific tables that are relevant to your data processing needs. For example, to import customer data, select tables containing details like name, email, address, and contact information.
</Note>

| Item        | Description                                                                 |
| :---------- | :-------------------------------------------------------------------------- |
| Purpose     | Option to assign a purpose (Data or Metadata) for each table.               |
| Data        | Loads customer data                                                         |
| Metadata    | Loads Metadata                                                              |
| File name   | Displays the name of the file that you imported.                            |
| Entity name | Displays the imported table name by default. You can rename it if required. |

4. Please scroll down to the bottom of the page to ensure all required tables are selected.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlservertabletwo.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=b298846bd601f87e985f80265eece549" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlservertabletwo.png" />

5. Click **Save** to apply the changes.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlservernewdataflowsaved.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=ff9224eb64fcb077362bfd3346a3b812" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlservernewdataflowsaved.png" />

Congratulations ! for saving the SQL Server connector dataflow, which appears on the **Dataflow > Imports** page.

## Run, Edit, and Delete the imported data

Once the table is imported, you can execute, modify, and remove the imported table from the Dataflow. Follow the below steps:

1. Go to the **Dataflow** > **Imports** page.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlserverruneditdelete.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=70e803e2c47a22265f6d6929bad2cf93" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlserverruneditdelete.png" />

| Item              | Description                                                                     |
| :---------------- | :------------------------------------------------------------------------------ |
| Name              | Displays the name of the imported Dataflow.                                     |
| Type              | Displays connector type symbol.                                                 |
| Connector Name    | Displays connector name.                                                        |
| Status            | Indicates whether the data is imported successfully.                            |
| Tables Count      | Displays the number of tables imported.                                         |
| Created Date      | Displays date of creation.                                                      |
| Last Refresh Type | Displays the refresh value: Full or Incremental.                                |
| Updated Date      | Displays last modified date.                                                    |
| Last Refresh      | Displays the latest refresh date, which updates each time you refresh the data. |
| Actions           | Provides multiple options for managing dataflows.                               |

2. Select the horizontal ellipsis under the **Actions** column and do the following:

| If you want to                       | Then                                                                                               |
| :----------------------------------- | :------------------------------------------------------------------------------------------------- |
| Modify the Dataflow                  | Select **Edit** and modify the Dataflow. Click **Save** to apply your changes.                     |
| Execute the Dataflow                 | Select **Run**.                                                                                    |
| Bring the data to its previous state | Select **Rollback**.                                                                               |
| Delete the Dataflow                  | Select **Remove** and then click the **Delete** button. All tables in the data source get deleted. |
| See the run history of the dataflow  | Select **Run history**.                                                                            |

3. Click **Run** to execute the dataflow. Once the execution is successful, the data pipeline status will update to **Completed**, as illustrated in the figure below.

<img src="https://mintcdn.com/skypoint/XlqH9d-peFD49de3/static/doc_snippets/sqlserverdataimportcomplete.png?fit=max&auto=format&n=XlqH9d-peFD49de3&q=85&s=03602c5dbff4620b11318623813ba30c" alt="Alt image" width="1920" height="1089" data-path="static/doc_snippets/sqlserverdataimportcomplete.png" />

<Note>
  In the Dataflow's **Run History Description,** you can view error messages related to data import failures from a data source. Additionally, you can check the status, start time, and end time of the data pipeline execution.
</Note>

## Next step

After completing the data import, start the [Master Data Management (MDM) - Resolve](https://docs.skypointcloud.com/docs/stitch.html) process to create a single, unified view of the data. With Skypoint MDM, you can ensure that your data is accurate, consistent, and reliable, making it easier to use for business processes, analytics, and reporting.
