To delete an symmetric key in SQL Server use this SQL statement:
SQL Statement
|
For asymmetric keys use ASYMMETRIC instead of SYMMETRIC in the SQL statement:
SQL Statement
|
With the previous statements an internal SQL Server key or a binding to a key in an EKM provider is deleted. In the latter case, the key itself is still existing in the EKM provider. To delete both the binding and the EKM provider key use the following statement for a symmetric key:
SQL Statement
|
For example:
SQL Statement
|
Use this SQL statement to delete an asymmetric key.
SQL Statement
|
For example:
SQL Statement
|