--- title: "DROP DATABASE SCOPED CREDENTIAL (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "02/27/2017" ms.prod: "sql" ms.prod_service: "database-engine" ms.service: "" ms.component: "t-sql|statements" ms.reviewer: "" ms.suite: "sql" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-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" ms.assetid: 319d59f4-fa82-47ca-869b-3a9cd52900b0 caps.latest.revision: 11 author: "edmacauley" ms.author: "edmaca" manager: "craigg" monikerRange: "= azuresqldb-current || = sqlallproducts-allversions" --- # DROP DATABASE SCOPED CREDENTIAL (Transact-SQL) [!INCLUDE[tsql-appliesto-xxxxxx-asdb-xxxx-xxx-md](../../includes/tsql-appliesto-xxxxxx-asdb-xxxx-xxx-md.md)] Removes a database scoped credential from the server. ![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## 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](../../t-sql/statements/alter-credential-transact-sql.md). Information about database scoped credentials is visible in the [sys.database_scoped_credentials](../../relational-databases/system-catalog-views/sys-database-scoped-credentials-transact-sql.md) catalog view. ## Permissions Requires `ALTER` permission on the credential. ## Examples The following example removes the database scoped credential called `SalesAccess`. ```sql DROP DATABASE SCOPED CREDENTIAL AppCred; GO ``` ## See Also [Credentials (Database Engine)](../../relational-databases/security/authentication-access/credentials-database-engine.md) [CREATE DATABASE SCOPED CREDENTIAL (Transact-SQL)](../../t-sql/statements/create-database-scoped-credential-transact-sql.md) [ALTER DATABASE SCOPED CREDENTIAL (Transact-SQL)](../../t-sql/statements/alter-database-scoped-credential-transact-sql.md) [sys.database_scoped_credentials](../../relational-databases/system-catalog-views/sys-database-scoped-credentials-transact-sql.md) [CREATE CREDENTIAL (Transact-SQL)](../../t-sql/statements/create-credential-transact-sql.md) [sys.credentials (Transact-SQL)](../../relational-databases/system-catalog-views/sys-credentials-transact-sql.md)