Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 2.62 KB

File metadata and controls

61 lines (48 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 02/27/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
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

DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)

[!INCLUDE asdb-asdbmi-asa]

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  

See Also

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