CREATEPROCEDURE[dbo].[LockPersistedStream] @SessionIDvarchar(32), @Indexint AS SELECT[Index]FROM[ReportServerTempDB].dbo.PersistedStreamWITH(XLOCK)WHERESessionID=@SessionIDAND[Index]=@Index
GO GRANTEXECUTEON[dbo].[LockPersistedStream]TO[RSExecRole] GO