# Create Data Source

This section walks users through the process of creating a data source by connecting to a SQL Server. You will access the Data Sources page from the Settings page. To create a data source by connecting to a SQL Server, follow the process below.

### **Select Create**

On the Data Sources page, select the **Create** button. This will open the Data Source Creation Wizard to guide you through the 3-step process of creating a new Data Source.

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2FZ69HrgHlOaSKhGvrG4T6%2Fcreate-button-datasources.png?alt=media&#x26;token=8b9ca68d-5627-4610-88ce-8f8a2c759686" alt="Data Sources page showing instructions to connect to a database and manage data sources. The &#x27;Create&#x27; button is highlighted, allowing users to add a new data source."><figcaption><p>Create Button in Data Sources</p></figcaption></figure></div>

## **Step 1. Define Your Data Source**

You will be brought to Step 1 of the Data Source creation wizard, fill out the required fields, which include:

1. **Source Type:** Select “Microsoft SQL Server”.
2. **Data source name:** Provide a unique name of the data source.
3. **Description:** Provide a description of the data source.  &#x20;

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2FSdnYrpoCXGqGYPKdL0IA%2Fds-step1-reqfields.png?alt=media&#x26;token=45d802ed-dab0-49cc-98e1-0232184ce8de" alt="Step 1 of 3: Define data source. Required fields are outlined, including Source Type, Data Source Name, and Description. The user has selected &#x27;Microsoft SQL Server,&#x27; entered &#x27;Demo Data 2024,&#x27; and added a description. Buttons at the bottom: &#x27;Next: Connect&#x27; and &#x27;Cancel&#x27;."><figcaption><p>Step 1: Data Source Required Fields</p></figcaption></figure></div>

Once all the required fields are filled out, select **Next: Connect** to proceed to Step 2 of the wizard flow.

* Select "**Cancel**" or "**Close**" to exit the wizard, which will discard any information entered or progress made up to that point.

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2FZieN4MWHVKpTbbY9USqT%2Fds-nextconnect.png?alt=media&#x26;token=1d8ccf87-d504-48b3-91a4-94c74d680c91" alt="Step 1 of 3: Define data source. The &#x27;Next: Connect&#x27; button at the bottom is highlighted, allowing the user to proceed to the next step after filling in the required fields."><figcaption><p>Next: Connect Button</p></figcaption></figure></div>

## **Step 2. Connect to Your Database**

On Step 2 of the wizard flow, to establish a connection with the SQL Server, enter the database connection credentials in the required fields, which include:

1. &#x20;**Server Address:** This is the URL address of the database.
2. &#x20;**Port number:** This is the port number for the database.
3. **Database name:** This is the name of database.
4. **Username:** This is the username for the database.
5. **Password:** This is the password for the database.

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2Fg4DZHWOHC3MH5wygy4nU%2Fds%20step%202%20required%20fields%201.png?alt=media&#x26;token=e6d29bd0-83aa-43a6-af2f-11b67e69addf" alt="Step 2 of 3: Define source connection. Required fields are highlighted, including Server Address (&#x27;dbserver123.example.com&#x27;), Port Number (&#x27;1234&#x27;), Database Name (&#x27;example database&#x27;), Username (&#x27;admin&#x27;), and Password. The &#x27;Test Connection&#x27; button is available, with &#x27;Back,&#x27; &#x27;Next: Save,&#x27; and &#x27;Cancel&#x27; options below."><figcaption><p>Step 2: Data Source Required Fields</p></figcaption></figure></div>

Once all the required fields are filled out, select the **Test Connection** button.

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2FF1fgOhTPle289RPbrfok%2Fds%20step%202%20test%20connction%20button.png?alt=media&#x26;token=b160a451-6b62-45c1-8933-b5627fe72eb3" alt="Step 2 of 3: Define source connection. The &#x27;Test Connection&#x27; button is highlighted, allowing the user to verify the database connection."><figcaption><p>Test Connection Button</p></figcaption></figure></div>

* If the connection is successful, a confirmation message will display as “**Connected successfully**”.&#x20;

<div align="center"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2Fp1c0n6jI8hrOVZcPHKnn%2Fds%20step%202%20connection%20success.png?alt=media&#x26;token=824fe6de-69dc-4785-9f0f-a8341f310625" alt="Connection test successful message displayed: &#x27;Connected successfully!&#x27; with options to proceed using &#x27;Next: Save,&#x27; go &#x27;Back,&#x27; or &#x27;Cancel.&#x27;"><figcaption><p>Connection Success Message</p></figcaption></figure></div>

* If the connection is unsuccessful, an error message will display as “**Unable to connect. Review your connection details and test it again**”.  Ensure to check your connection credentials and network settings beforehand.

<figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2FCyV24mLWJ12HWJLOLShK%2Ftest-connection-error.PNG?alt=media&#x26;token=67591c59-fae2-496e-b6a7-4801662796cf" alt="Connection test failed with an error message: &#x27;Unable to connect. Review your connection details.&#x27; Options include &#x27;Next: Save,&#x27; &#x27;Back,&#x27; and &#x27;Cancel.&#x27;"><figcaption><p>Connection Error Message</p></figcaption></figure>

Once the connection is successful, select **Next: Save** to proceed to Step 3.

* Select "**Back**" if you need to revise any previous steps.
* Select "**Cancel**" or "**Close**" to exit the wizard, which will discard any information entered or progress made up to that point.

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2FxeM8SoXqlhpxwkPLxc7l%2Fds%20step%202-next%20save%20button.png?alt=media&#x26;token=9874f0a9-c0af-413a-ab67-2e58c5985c54" alt="Step 2 of 3: Define source connection. The &#x27;Next: Save&#x27; button is highlighted, allowing the user to proceed after successfully connecting to the database."><figcaption><p>Next: Save Button</p></figcaption></figure></div>

## **Step 3. Data Source Summary**

On Step 3, review the summary details of your Data Source and select **Save**.

* Select "**Back**" if you need to revise any previous steps.
* Select "**Cancel**" or "**Close**" to exit the wizard, which will discard any information entered or progress made up to that point.

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2F4J7TSDOoATLgy4FAD7DN%2Fds%20summary%20step%203.png?alt=media&#x26;token=c36b9b20-2444-46b0-9050-87a6dfb40e18" alt="Step 3 of 3: Data Source Summary. The summary displays connection type, friendly name, description, and data source details such as server address, port number, database name, and username. The &#x27;Save&#x27; button is highlighted, allowing the user to finalize and save the data source."><figcaption><p>Step 3: Data Source Summary</p></figcaption></figure></div>

## **View Data Source page**

Once the Data Source is saved, you will be brought to the Data Source page. You will find the newly created data source displayed in the list.

<div align="left"><figure><img src="https://1447747760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FarC4MaJejPFvYsqImiyY%2Fuploads%2F8l0f3p7YSWmZqJoIx3gQ%2Fnew%20ds.jpeg?alt=media&#x26;token=0c0de4a1-9510-4aa7-b962-4b5d70323dc9" alt="Data Sources page showing one data source titled &#x27;Demo Data 2024&#x27; with a status of &#x27;Available.&#x27; The page includes options to sort or create a new data source, with navigation links and footer information visible at the bottom."><figcaption><p>New Data Source Displayed in List</p></figcaption></figure></div>
