DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
Removes a database scoped credential from the server.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for