透過 T-SQL 發送訂閱報表

use reportserver
go
declare @eventData uniqueidentifier
select @EventData=[EventData] from [dbo].[Subscriptions] s
join [dbo].[ReportSchedule] r on s.SubscriptionID=r.SubscriptionID
join [dbo].[Schedule] c on r.ScheduleID=c.ScheduleID
where s.Description=N'<建立訂閱時的描述>’
exec [ReportServer].dbo.AddEvent @EventType=’TimedSubscription’, @EventData=@eventData

image

Where 要填的內容就是上述的描述欄位

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: