Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 2.46 KB

File metadata and controls

71 lines (52 loc) · 2.46 KB
title DROP CREDENTIAL (Transact-SQL)
description DROP CREDENTIAL removes a credential from the server.
author VanMSFT
ms.author vanto
ms.reviewer randolphwest
ms.date 10/20/2025
ms.service sql
ms.subservice t-sql
ms.topic reference
f1_keywords
DROP CREDENTIAL
DROP_CREDENTIAL_TSQL
helpviewer_keywords
removing credentials
DROP CREDENTIAL statement
credentials [SQL Server], DROP CREDENTIAL statement
authentication [SQL Server], credentials
deleting credentials
dropping credentials
dev_langs
TSQL

DROP CREDENTIAL (Transact-SQL)

[!INCLUDE SQL Server]

Removes a credential from the server.

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

Syntax

DROP CREDENTIAL credential_name

Arguments

credential_name

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.

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) and recreate the associated proxy (by using sp_add_proxy).

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

Related content