---
title: "Add Item to the SQL Server"
description: "Add a SQL Server Instance or SQL Server Availability Group item to a monitoring plan in Auditor, including instance name formats and data collecting account."
sidebar_position: 10
---

# Add Item to the SQL Server

Perform the following steps to add an item to the SQL Server monitoring plan.

**Step 1 –** Create a monitoring plan for the SQL Server.

**Step 2 –** Double-click SQL Server monitoring plan.

**Step 3 –** Click **Add Item**.

**Step 4 –** Select one of the items from the dropdown list:

- SQL Server Instance
- SQL Server Availability Group

**Step 5 –** Click **Add**.

Item is added and SQL Server monitoring plan is ready to use.

## SQL Server Instance

Complete the following fields:

| Option                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Specify SQL Server instance             | Specify the name of the SQL Server instance.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Specify the account for collecting data | Select the account to use to collect data for this item. If you want to use a specific account (other than the one you specified during monitoring plan creation), select **Custom account** and enter credentials. The credentials are case sensitive. You must grant a custom account the same permissions and access rights as the default account used for data collection. See the [Data Collecting Account](/docs/auditor/10.9/configuration/monitoring-plans/dataaccounts.md) topic for additional information. |

In **Specify SQL Server instance**, enter the instance name in one of the following formats:

| Instance                          | Format                         | Example                       |
| --------------------------------- | ------------------------------ | ----------------------------- |
| Default instance                  | `<server>`                     | `PROD-SQL-01`                 |
| Named instance                    | `<server>\<instance>`          | `DEV-SQL-01\DEVINSTANCE`      |
| Default instance on a custom port | `<server>,<port>`              | `PROD-SQL-02,1440`            |
| Named instance on a custom port   | `<server>\<instance>,<port>`   | `TEST-SQL-01\TESTINSTANCE,1440` |

Separate the port from the server or instance name with a comma, not a colon.

## SQL Server Availability Group

Complete the following fields:

| Option                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Availability group listener             | Provide a name of an availability group listener in FQDN or NetBIOS format. The listener is a virtual network name (VNN) that provides access to a database in a primary or secondary replica of an Always On availability group. A listener lets you connect to a replica without knowing the physical instance name of the SQL Server. Ensure the listener meets the DNS name and Windows permissions requirements. See [Configure a listener for an Always On availability group](https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/create-or-configure-an-availability-group-listener-sql-server?view=sql-server-ver15) for additional information. |
| Availability group name                 | Enter a name of your SQL Server availability group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Specify the account for collecting data | Select the account to use to collect data for this item. If you want to use a specific account (other than the one you specified during monitoring plan creation), select **Custom account** and enter credentials. The credentials are case sensitive. You must grant a custom account the same permissions and access rights as the default account used for data collection. See the [Data Collecting Account](/docs/auditor/10.9/configuration/monitoring-plans/dataaccounts.md) topic for additional information.                                                                                                                                                                                                                                                 |
