Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 2.62 KB

File metadata and controls

68 lines (50 loc) · 2.62 KB
title DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)
description DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)
author VanMSFT
ms.author vanto
ms.date 05/14/2025
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2025
f1_keywords
DROP DATABASE SCOPED CREDENTIAL
DROP_DATABASE_SCOPED_CREDENTIAL_TSQL
helpviewer_keywords
DROP DATABASE SCOPED CREDENTIAL statement
credential [SQL Server], DROP DATABASE SCOPED CREDENTIAL statement
dev_langs
TSQL
monikerRange =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=aps-pdw-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb

DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics PDW FabricSQLDB]

Removes a database scoped credential from the server.

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

Syntax

DROP DATABASE SCOPED CREDENTIAL credential_name  

Arguments

credential_name

The name of the database scoped credential to remove from the server.

Remarks

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

Information about database scoped credentials is visible in the sys.database_scoped_credentials catalog view.

Permissions

Requires ALTER permission on the credential.

Examples

The following example removes the database scoped credential called SalesAccess.

DROP DATABASE SCOPED CREDENTIAL SalesAccess;  
GO  

Related content