> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/cdp-365-user-guide-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/cdp-365-user-guide-en/dataflows/data-source/data-source-connectors/sql-server.md).

# SQL Server

## Description

Use data on SQL Server as Data Source of CDP 365 by choosing SQL Server Connector. [How to Create datasource](/cdp-365-user-guide-en/dataflows/data-source/create-a-data-source.md)

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Ftou1rLBGznQyQoJg8ned%2Fimage.png?alt=media&amp;token=5b62d445-b049-46e9-aa1e-ef14cc277a0a" alt=""><figcaption></figcaption></figure>

## Connect step

### **1. Database Authentication**

After selecting the connector, SQL Server will display the datasource creation interface as shown below.

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FRjqOjhBSFHWKjZwyfo0W%2Fimage.png?alt=media&amp;token=f29378ba-dcfb-4d9b-935a-4e3ae200005b" alt=""><figcaption></figcaption></figure>

Authentication information for SQL Server Database includes:&#x20;

* Host Name or IP: host name or IP server. Required.
* Port: Port sever. Number only. Required
* DB name: Database name. Required.
* Username: Username to login. Required.
* Password: Password to login. Required.

Fill out the information completely. Click the Authenticate button to authenticate.&#x20;

### **2. Select access object**

The successful authentication interface is displayed as shown below. Select the object you want to connect to get information. Includes options: Table, View, Custom Query.&#x20;

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FNVgLkb1nvEa3IgafYzbM%2Fimage.png?alt=media&amp;token=b28ee017-2312-4f51-b754-61720da0b97a" alt=""><figcaption></figcaption></figure>

#### Tables

* Clicking on the table item will show a list of tables that the authentication login account has access to.
* Clicking on the table want to create datasource

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2F2IrB5hj2WvVYPgnYG0ar%2Fimage.png?alt=media&amp;token=7cba4eaa-15ed-48c4-9dae-3a1d4791b5ea" alt=""><figcaption></figcaption></figure>

#### Views

* Clicking on the View item will show a list of view that the authentication login account has access to.
* Clicking on the table want to create datasource

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FICEM4OfM2rEGHHKZOfO1%2Fimage.png?alt=media&amp;token=954614a4-5b25-489a-a71d-61ccb36ff665" alt=""><figcaption></figcaption></figure>

#### Custom Query

* Use the command to retrieve the desired data set. Only Select statements are allowed. Allow query input note: -- or /\* \*/
* Enter a query to create a dataset.

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FAZX5iyWr7oAxPxfvWxst%2Fimage.png?alt=media&amp;token=008ecafc-f499-4c39-8318-084e95838bc4" alt=""><figcaption></figcaption></figure>

### 3. Click on Connect

After selecting the object, click the connect button to create the datasource


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.antsomi.com/cdp-365-user-guide-en/dataflows/data-source/data-source-connectors/sql-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
