Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Applies to:
SQL Server 2016 (13.x) and later versions
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
SQL database in Microsoft Fabric
Returns one row for each database scoped credential in the database.
| Column name | Data type | Description |
|---|---|---|
name |
sysname | Name of the database scoped credential. Is unique in the database. |
credential_id |
int | ID of the database scoped credential. Is unique in the database. |
credential_identity |
nvarchar(4000) | Name of the identity to use. It does not have to be unique. |
create_date |
datetime | Time at which the database scoped credential was created. |
modify_date |
datetime | Time at which the database scoped credential was last modified. |
target_type |
nvarchar(100) | Type of database scoped credential. Returns NULL for database scoped credentials. |
target_id |
int | ID of the object that the database scoped credential is mapped to. Returns 0 for database scoped credentials. |
| Column name | Data type | Description |
|---|---|---|
name |
sysname | Name of the database scoped credential. Is unique in the database. |
credential_id |
int | ID of the database scoped credential. Is unique in the database. |
principal_id |
int | ID of the database principal who owns the key. |
credential_identity |
nvarchar(4000) | Name of the identity to use. It does not have to be unique. |
create_date |
datetime | Time at which the database scoped credential was created. |
modify_date |
datetime | Time at which the database scoped credential was last modified. |
target_type |
nvarchar(100) | Type of database scoped credential. Returns NULL for database scoped credentials. |
target_id |
int | ID of the object that the database scoped credential is mapped to. Returns 0 for database scoped credentials |
Permissions
Requires CONTROL permission on the database.