Class SecuritySchema.DatabaseScopedCredential
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
sys.database_scoped_credentials (Transact-SQL)
Applies to: √ SQL Server 2016 (13.x) and later √ Azure SQL Database √ Azure SQL Managed Instance √ Azure Synapse Analytics
Returns one row for each database scoped credential in the database.
::: moniker range='=sql-server-2016'
[Table(Schema = "sys", Name = "database_scoped_credentials", IsView = true)]
public class SecuritySchema.DatabaseScopedCredential
- Inheritance
-
SecuritySchema.DatabaseScopedCredential
- Extension Methods
Properties
CreateDate
Time at which the database scoped credential was created.
[Column("create_date")]
[NotNull]
public DateTime CreateDate { get; set; }
Property Value
CredentialID
ID of the database scoped credential. Is unique in the database.
[Column("credential_id")]
[NotNull]
public int CredentialID { get; set; }
Property Value
CredentialIdentity
Name of the identity to use. This will generally be a Windows user. It does not have to be unique.
[Column("credential_identity")]
[Nullable]
public string? CredentialIdentity { get; set; }
Property Value
ModifyDate
Time at which the database scoped credential was last modified.
[Column("modify_date")]
[NotNull]
public DateTime ModifyDate { get; set; }
Property Value
Name
Name of the database scoped credential. Is unique in the database.
[Column("name")]
[NotNull]
public string Name { get; set; }
Property Value
TargetID
ID of the object that the database scoped credential is mapped to. Returns 0 for database scoped credentials
[Column("target_id")]
[Nullable]
public int? TargetID { get; set; }
Property Value
- int?
TargetType
Type of database scoped credential. Returns NULL
for database scoped credentials.
[Column("target_type")]
[Nullable]
public string? TargetType { get; set; }