Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server
Azure SQL Managed Instance
Returns a public key of the certificate used for authentication on endpoint of specified type with certificate-based trust configured. Supported types of endpoints are Database Mirroring endpoint (also used for Link feature of Azure SQL Managed Instance) and Service Broker endpoint.
Transact-SQL syntax conventions
sp_get_endpoint_certificate [ @endpoint_type = ] endpoint_type
[ ; ]
Type of endpoint for which certificate's public key is required. @endpoint_type is int, and can be one of these values:
Value | Endpoint |
---|---|
3 |
Service Broker |
4 |
Database Mirroring |
Values correspond to the endpoint payload types in sys.endpoints system catalog view.
If any other integer value is provided, stored procedure returns NULL
.
0
(success) or 1
(failure).
Column name | Data type | Description |
---|---|---|
EndpointCertificatePublicKey |
varbinary | Public key of the certificate, in binary format |
If authentication type configured on the endpoint isn't certificate-based, stored procedure returns error.
User must have VIEW
permission on the endpoint to execute sp_get_endpoint_certificate
.
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari ini