DROP DATABASE SCOPED CREDENTIAL (Transact-SQL)
Applies to:
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
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
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)
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho