Stored Procedures [dbo].[DeleteKey]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@InstallationIDuniqueidentifier16
Permissions
TypeActionOwning Principal
GrantExecuteRSExecRole
SQL Script
CREATE PROCEDURE [dbo].[DeleteKey]
@InstallationID uniqueidentifier
AS
if (@InstallationID = '00000000-0000-0000-0000-000000000000')
RAISERROR('Cannot delete reserved key', 16, 1)
-- Remove the encryption keys
delete from keys where InstallationID = @InstallationID and Client = 1

GO
GRANT EXECUTE ON  [dbo].[DeleteKey] TO [RSExecRole]
GO
Uses