Stored Procedures [dbo].[PromoteSnapshotInfo]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@SnapshotDataIDuniqueidentifier16
@IsPermanentSnapshotbit1
@PageCountint4
@HasDocMapbit1
Permissions
TypeActionOwning Principal
GrantExecuteRSExecRole
SQL Script
CREATE PROCEDURE [dbo].[PromoteSnapshotInfo]
@SnapshotDataID as uniqueidentifier,
@IsPermanentSnapshot as bit,
@PageCount as int,
@HasDocMap as bit
AS
IF @IsPermanentSnapshot = 1
BEGIN
   UPDATE SnapshotData SET PageCount = @PageCount, HasDocMap = @HasDocMap
   WHERE SnapshotDataID = @SnapshotDataID
END ELSE BEGIN
   UPDATE [ReportServerTempDB].dbo.SnapshotData SET PageCount = @PageCount, HasDocMap = @HasDocMap
   WHERE SnapshotDataID = @SnapshotDataID
END      

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