Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 2.66 KB

drop-database-scoped-credential-transact-sql.md

File metadata and controls

62 lines (48 loc) · 2.66 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs monikerRange
DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)
DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)
VanMSFT
vanto
08/06/2024
sql
t-sql
reference
DROP DATABASE SCOPED CREDENTIAL
DROP_DATABASE_SCOPED_CREDENTIAL_TSQL
DROP DATABASE SCOPED CREDENTIAL statement
credential [SQL Server], DROP DATABASE SCOPED CREDENTIAL statement
TSQL
=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=aps-pdw-2016||>=sql-server-linux-2017||=azuresqldb-mi-current

DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw]

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

Is 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