CREATEPROCEDURE[dbo].[MarkSnapshotAsDependentOnUser] @SnapshotDataIDasuniqueidentifier, @IsPermanentSnapshotasbit AS if@IsPermanentSnapshot=1 BEGIN UPDATESnapshotData SETDependsOnUser=1 WHERESnapshotDataID=@SnapshotDataID ENDELSEBEGIN UPDATE[ReportServerTempDB].dbo.SnapshotData SETDependsOnUser=1 WHERESnapshotDataID=@SnapshotDataID END
GO GRANTEXECUTEON[dbo].[MarkSnapshotAsDependentOnUser]TO[RSExecRole] GO