Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 2.71 KB

File metadata and controls

74 lines (61 loc) · 2.71 KB
title ASYMKEY_ID (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/06/2017
ms.prod sql-non-specified
ms.reviewer
ms.suite
ms.technology
database-engine
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
AsymKey_ID
ASYMKEY_ID_TSQL
dev_langs
TSQL
helpviewer_keywords
asymmetric keys [SQL Server], AsymKey_ID
ASYMKEY_ID function
encryption [SQL Server], asymmetric keys
identification numbers [SQL Server], asymmetric keys
IDs [SQL Server], asymmetric keys
cryptography [SQL Server], asymmetric keys
ms.assetid d697daf8-2106-4ebb-b09a-ca0be465d747
caps.latest.revision 22
author BYHAM
ms.author rickbyh
manager jhubbard

ASYMKEY_ID (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-asdb-xxxx-xxx_md]

Returns the ID of an asymmetric key.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
ASYMKEY_ID ( 'Asym_Key_Name' )  

Arguments

Asym_Key_Name
Is the name of an asymmetric key in the database.

Return Types

int

Permissions

Requires some permission on the asymmetric key and that the caller has not been denied VIEW permission on the asymmetric key.

Examples

The following example returns the ID of asymmetric key ABerglundKey11.

SELECT ASYMKEY_ID('ABerglundKey11');  
GO  

See Also

CREATE ASYMMETRIC KEY (Transact-SQL)
ALTER ASYMMETRIC KEY (Transact-SQL)
DROP ASYMMETRIC KEY (Transact-SQL)
SIGNBYASYMKEY (Transact-SQL)
VERIFYSIGNEDBYASYMKEY (Transact-SQL)
Encryption Hierarchy
sys.asymmetric_keys (Transact-SQL)
Security Catalog Views (Transact-SQL)
ASYMKEYPROPERTY (Transact-SQL)
KEY_ID (Transact-SQL)