| title | DROP DATABASE SCOPED CREDENTIAL (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 02/27/2017 | ||
| ms.prod | sql-non-specified | ||
| ms.reviewer | |||
| ms.suite | |||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | 319d59f4-fa82-47ca-869b-3a9cd52900b0 | ||
| caps.latest.revision | 11 | ||
| author | BYHAM | ||
| ms.author | rickbyh | ||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-xxxxxx-asdb-xxxx-xxx_md]
Removes a database scoped credential from the server.
Transact-SQL Syntax Conventions
DROP DATABASE SCOPED CREDENTIAL credential_name
credential_name
Is the name of the database scoped credential to remove from the server.
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.
Requires ALTER permission on the credential.
The following example removes the database scoped credential called SalesAccess.
DROP DATABASE SCOPED CREDENTIAL AppCred;
GO 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)