Ócáid
Mar 31, 11 PM - Apr 2, 11 PM
An ócáid foghlama SQL, Fabric and Power BI is mó. Márta 31 – 2 Aibreán. Bain úsáid as cód FABINSIDER chun $ 400 a shábháil.
Cláraigh inniuNí thacaítear leis an mbrabhsálaí seo a thuilleadh.
Uasghrádú go Microsoft Edge chun leas a bhaint as na gnéithe is déanaí, nuashonruithe slándála, agus tacaíocht theicniúil.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
SQL database in Microsoft Fabric
Returns the value of a specified certificate property.
Transact-SQL syntax conventions
CertProperty ( Cert_ID , '<PropertyName>' )
<PropertyName> ::=
Expiry_Date | Start_Date | Issuer_Name
| Cert_Serial_Number | Subject | SID | String_SID
Cert_ID
The certificate ID value, of data type int.
Expiry_Date
The certificate expiration date.
Start_Date
The date when the certificate becomes valid.
Issuer_Name
The name of the certificate issuer.
Cert_Serial_Number
The certificate serial number.
Subject
The certificate subject.
SID
The certificate SID. This is also the SID of any login or user mapped to this certificate.
String_SID
The SID of the certificate as a character string. This is also the SID of any login or user mapped to the certificate.
Single quotation marks must enclose the property specification.
The return type depends on the property specified in the function call. The return type sql_variant wraps all return values.
See certificate information in the sys.certificates catalog view.
Requires appropriate permission(s) on the certificate, and requires that the caller has not been denied VIEW permission on the certificate. See CREATE CERTIFICATE (Transact-SQL) and GRANT CERTIFICATE PERMISSIONS (Transact-SQL) for more information about certificate permissions.
The following example returns the certificate subject.
-- First create a certificate.
CREATE CERTIFICATE Marketing19 WITH
START_DATE = '04/04/2004' ,
EXPIRY_DATE = '07/07/2040' ,
SUBJECT = 'Marketing Print Division';
GO
-- Now use CertProperty to examine certificate
-- Marketing19's properties.
DECLARE @CertSubject sql_variant;
set @CertSubject = CertProperty( Cert_ID('Marketing19'), 'Subject');
PRINT CONVERT(nvarchar, @CertSubject);
GO
CREATE CERTIFICATE (Transact-SQL)
ALTER CERTIFICATE (Transact-SQL)
CERT_ID (Transact-SQL)
Encryption Hierarchy
sys.certificates (Transact-SQL)
Security Catalog Views (Transact-SQL)
Ócáid
Mar 31, 11 PM - Apr 2, 11 PM
An ócáid foghlama SQL, Fabric and Power BI is mó. Márta 31 – 2 Aibreán. Bain úsáid as cód FABINSIDER chun $ 400 a shábháil.
Cláraigh inniu