[dbo].[DeleteKey]
(local)
>
ReportServer
>
Stored Procedures
> dbo.DeleteKey
Properties
Parameters
Permissions
SQL Script
Uses
Properties
Property
Value
ANSI Nulls On
Quoted Identifier On
Parameters
Name
Data Type
Max Length (Bytes)
@InstallationID
uniqueidentifier
16
Permissions
Type
Action
Owning Principal
Grant
Execute
RSExecRole
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
[dbo].[Keys]
dbo