title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | monikerRange | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Delete a Resource Pool |
Learn how to delete a resource pool using either SQL Server Management Studio or Transact-SQL. |
WilliamDAssafMSFT |
wiassaf |
dfurman |
01/02/2025 |
sql |
performance |
how-to |
|
>= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current |
[!INCLUDE SQL Server SQL MI]
You can delete a resource pool by using either [!INCLUDEssManStudioFull] or [!INCLUDEtsql].
- You can't delete the built-in
default
orinternal
resource pools. - You can't delete a resource pool if it contains workload groups. For more information, see Delete a workload group.
Deleting a resource pool requires CONTROL SERVER
permission.
To delete a resource pool using [[!INCLUDEssManStudioFull]](../../ssms/download-sql-server-management-studio-ssms.md):
-
In [!INCLUDEssManStudioFull], open Object Explorer and expand the Management node down to and including Resource Governor.
-
Open the context menu of the resource pool to be deleted and select Delete.
-
In the Delete Object window, the resource pool is listed in the Object to be deleted list. To delete the resource pool, select OK.
[!NOTE] If the resource pool that you are trying to delete contains a workload group, this action fails.
To delete a resource pool using [!INCLUDEtsql]:
- Execute the DROP RESOURCE POOL or DROP EXTERNAL RESOURCE POOL statement specifying the name of the resource pool to delete.
- Execute the
ALTER RESOURCE GOVERNOR RECONFIGURE
statement for the changes to take effect.
The following example deletes a resource pool named poolAdhoc
and makes the new configuration effective.
DROP RESOURCE POOL poolAdhoc;
ALTER RESOURCE GOVERNOR RECONFIGURE;
- Resource governor
- Resource governor resource pool
- Create a resource pool
- Change resource pool settings
- Resource governor workload group
- Resource governor classifier function
- DROP WORKLOAD GROUP
- DROP RESOURCE POOL
- ALTER RESOURCE GOVERNOR
- DROP EXTERNAL RESOURCE POOL
- CREATE EXTERNAL RESOURCE POOL
- ALTER EXTERNAL RESOURCE POOL