[dbo].[CleanExpiredServerParameters]
(local)
>
ReportServer
>
Stored Procedures
> dbo.CleanExpiredServerParameters
Properties
Parameters
Permissions
SQL Script
Uses
Properties
Property
Value
ANSI Nulls On
Quoted Identifier On
Parameters
Name
Data Type
Max Length (Bytes)
Direction
@ParametersCleaned
int
4
Out
Permissions
Type
Action
Owning Principal
Grant
Execute
RSExecRole
SQL Script
CREATE
PROCEDURE
[dbo]
.
[CleanExpiredServerParameters]
@ParametersCleaned
INT
OUTPUT
AS
DECLARE
@now
as
DATETIME
SET
@now
=
GETDATE
()
DELETE
FROM
[dbo]
.
[ServerParametersInstance]
WHERE
ServerParametersID
IN
(
SELECT
TOP
20
ServerParametersID
FROM
[dbo]
.
[ServerParametersInstance]
WHERE
Expiration
<
@now
)
SET
@ParametersCleaned
=
@@ROWCOUNT
GO
GRANT
EXECUTE
ON
[dbo]
.
[CleanExpiredServerParameters]
TO
[RSExecRole]
GO
Uses
[dbo].[ServerParametersInstance]
dbo