| title | Delete a Resource Pool | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/17/2016 | ||
| ms.prod | sql | ||
| ms.reviewer | |||
| ms.technology | performance | ||
| ms.topic | conceptual | ||
| helpviewer_keywords |
|
||
| ms.assetid | 3bdd348b-6582-4ffa-80ef-d49e50596ce5 | ||
| author | julieMSFT | ||
| ms.author | jrasnick |
[!INCLUDEappliesto-ss-asdbmi-xxxx-xxx-md]
You can delete a resource pool by using either [!INCLUDEssManStudioFull] or Transact-SQL.
-
Before you begin: Limitations and Restrictions, Permissions
-
To delete a resource pool, using: SQL Server Management Studio, Transact-SQL
You cannot delete a resource pool if it contains workload groups.
You cannot delete the Resource Governor default or internal resource pools. You cannot 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 by using SQL Server Management Studio
-
In [!INCLUDEssManStudioFull], open Object Explorer and recursively expand the Management node down to and including Resource Governor.
-
Right-click the resource pool to be deleted, and then click Delete.
-
In the Delete Object window, the resource pool is listed in the Object to be deleted list. To delete the resource pool, click OK.
[!NOTE]
If the resource pool that you are trying to delete contains a workload group, this action will fail.
To delete a resource pool by using Transact-SQL
-
Run the DROP RESOURCE POOL or DROP EXTERNAL RESOURCE POOL statement specifying the name of the resource pool to delete.
-
Run the ALTER RESOURCE GOVERNOR RECONFIGURE statement.
The following example drops a workload group named poolAdhoc.
DROP RESOURCE POOL poolAdhoc;
GO
ALTER RESOURCE GOVERNOR RECONFIGURE;
GO
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 (Transact-SQL)
DROP RESOURCE POOL (Transact-SQL)
ALTER RESOURCE GOVERNOR (Transact-SQL)
DROP EXTERNAL RESOURCE POOL (Transact-SQL)
CREATE EXTERNAL RESOURCE POOL (Transact-SQL)
ALTER EXTERNAL RESOURCE POOL (Transact-SQL)