Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 2.84 KB

File metadata and controls

70 lines (55 loc) · 2.84 KB
title DROP CREDENTIAL (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 08/19/2015
ms.prod sql
ms.prod_service sql-database
ms.reviewer
ms.technology t-sql
ms.topic language-reference
f1_keywords
DROP CREDENTIAL
DROP_CREDENTIAL_TSQL
dev_langs
TSQL
helpviewer_keywords
removing credentials
DROP CREDENTIAL statement
credentials [SQL Server], DROP CREDENTIAL statement
authentication [SQL Server], credentials
deleting credentials
dropping credentials
ms.assetid df22c826-317d-45a6-b078-186acb65f71e
author VanMSFT
ms.author vanto

DROP CREDENTIAL (Transact-SQL)

[!INCLUDE SQL Server]

Removes a credential from the server.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
DROP CREDENTIAL credential_name  

Arguments

credential_name
Is the name of the credential to remove from the server.

Remarks

To drop the secret associated with a credential without dropping the credential itself, use ALTER CREDENTIAL.

Information about credentials is visible in the sys.credentials catalog view.

Warning

Proxies are associated with a credential. Deleting a credential that is used by a proxy leaves the associated proxy in an unusable state. When dropping a credential used by a proxy, delete the proxy (by using sp_delete_proxy (Transact-SQL) and recreate the associated proxy by using sp_add_proxy (Transact-SQL).

Permissions

Requires ALTER ANY CREDENTIAL permission. If dropping a system credential, requires CONTROL SERVER permission.

Examples

The following example removes the credential called Saddles.

DROP CREDENTIAL Saddles;  
GO  

See Also

Credentials (Database Engine)
CREATE CREDENTIAL (Transact-SQL)
ALTER CREDENTIAL (Transact-SQL)
DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)
sys.credentials (Transact-SQL)