Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 2.57 KB

drop-cryptographic-provider-transact-sql.md

File metadata and controls

67 lines (52 loc) · 2.57 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
DROP CRYPTOGRAPHIC PROVIDER (Transact-SQL)
DROP CRYPTOGRAPHIC PROVIDER (Transact-SQL)
VanMSFT
vanto
03/14/2017
sql
t-sql
reference
DROP CRYPTOGRAPHIC PROVIDER
DROP_CRYPTOGRAPHIC_PROVIDER_TSQL
DROP CRYPTOGRAPHIC PROVIDER statement
TSQL

DROP CRYPTOGRAPHIC PROVIDER (Transact-SQL)

[!INCLUDE sql-asdbmi]

Drops a cryptographic provider within [!INCLUDEssNoVersion].

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

DROP CRYPTOGRAPHIC PROVIDER provider_name   

[!INCLUDEsql-server-tsql-previous-offline-documentation]

Arguments

provider_name
Is the name of the Extensible Key Management provider.

Remarks

To delete an Extensible Key Management (EKM) provider, all sessions that use the provider must be stopped.

An EKM provider can only be dropped if there are no credentials mapped to it.

If there are keys mapped to an EKM provider when it is dropped the GUIDs for the keys remain stored in [!INCLUDEssNoVersion]. If a provider is created later with the same key GUIDs, the keys will be reused.

Permissions

Requires CONTROL permission on the symmetric key.

Examples

The following example drops a cryptographic provider called SecurityProvider.

/* First, disable provider to perform the upgrade.  
This will terminate all open cryptographic sessions. */  
ALTER CRYPTOGRAPHIC PROVIDER SecurityProvider   
SET ENABLED = OFF;  
GO  
/* Drop the provider. */  
DROP CRYPTOGRAPHIC PROVIDER SecurityProvider;  
GO  

See Also

Extensible Key Management (EKM)
CREATE CRYPTOGRAPHIC PROVIDER (Transact-SQL)
ALTER CRYPTOGRAPHIC PROVIDER (Transact-SQL)
CREATE SYMMETRIC KEY (Transact-SQL)