{"id":264,"date":"2012-07-06T17:05:31","date_gmt":"2012-07-06T08:05:31","guid":{"rendered":"http:\/\/sorceryforce.net\/WordPress\/?p=264"},"modified":"2012-07-06T17:05:31","modified_gmt":"2012-07-06T08:05:31","slug":"sql-server-reporting-services-%e3%81%a7%e7%99%bb%e9%8c%b2%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e3%82%b5%e3%83%96%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92","status":"publish","type":"post","link":"https:\/\/blog.sorceryforce.net\/?p=264","title":{"rendered":"SQL Server Reporting Services \u3067\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u4e00\u62ec\u5b9f\u884c\u3059\u308b SQL"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[\n\n<h2>\u6982\u8981<\/h2>\n\n  \n\n<p>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306f\u767b\u9332\u3057\u305f\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306b\u5f93\u3063\u3066\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u304c\u3001\u4efb\u610f\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u4e00\u62ec\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u305d\u308c\u3092\u884c\u3046\u305f\u3081\u306e\u5b9f\u884c SQL \u3092\u8f09\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n\n  \n\n<h2>\u6ce8\u610f<\/h2>\n\n  \n\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u306f\u3059\u3079\u3066\u306e\u74b0\u5883\u3067\u5b9f\u884c\u3092\u4fdd\u8a3c\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u516c\u5f0f\u3067\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u5185\u5bb9\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u81ea\u5df1\u8cac\u4efb\u3067\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n\n  \n\n<h2>\u52d5\u4f5c\u78ba\u8a8d\u74b0\u5883<\/h2>\n\n  \n\n<ul>   \n\n<li>SQL Server 2008 Standard SP3<\/li>\n\n <\/ul>\n\n  \n\n<h2>\u5b9f\u884c SQL<\/h2>\n\n    \n\n<pre class=\"diagram\"><code>-- SubscriptionID \u3092\u5165\u308c\u308b\u5909\u6570\ndeclare @id as uniqueidentifier\n-- ReportServer \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e Subscriptions \u30c6\u30fc\u30d6\u30eb\u304b\u3089\u767b\u9332\u3055\u308c\u3066\u3044\u308b\n-- \u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3 ID \u4e00\u89a7\u3092\u53d6\u5f97\ndeclare NEW_cursor cursor for\nselect SubscriptionID\nfrom ReportServer.dbo.Subscriptions\n-- \u30ab\u30fc\u30bd\u30eb\u30aa\u30fc\u30d7\u30f3\nopen NEW_cursor\n-- FETCH \u30b9\u30bf\u30fc\u30c8\nfetch next from NEW_cursor\ninto @id\nwhile @@FETCH_STATUS = 0\nbegin\n  -- \u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u30a4\u30d9\u30f3\u30c8\u8ffd\u52a0 (\u975e\u540c\u671f)\n  exec ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData=@id\n  -- \u6b21\u306e ID \u3078\n  fetch next from NEW_cursor\n  into @id\nend\n-- \u30ab\u30fc\u30bd\u30eb\u30af\u30ed\u30fc\u30ba\nclose NEW_cursor\ndeallocate NEW_cursor\n<\/code><\/pre>\n\n\n\n\n<h2>\u88dc\u8db3<\/h2>\n\n\n\n\n<p>\u3053\u306e SQL \u306f\u3042\u304f\u307e\u3067\u3082\u30a4\u30d9\u30f3\u30c8\u3092\u767b\u9332\u3057\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u5373\u5ea7\u306b\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u5185\u5bb9\u304c\u5b9f\u884c\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093(\u975e\u540c\u671f)\u3002\u3053\u306e SQL \u3092\u5b9f\u884c\u3059\u308c\u3070\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u5185\u5bb9\u304c\u3059\u3079\u3066\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3082\u306e\u3068\u601d\u3044\u8fbc\u3093\u3067\u3057\u307e\u3046\u3068\u3001\u6b21\u306e\u51e6\u7406\u3092\u5b9f\u884c\u305f\u3068\u304d\u306b\u3001\u5b9f\u306f\u307e\u3060\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3001\u306a\u3093\u3066\u3053\u3068\u306b\u306a\u308a\u304b\u306d\u306a\u3044\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n]]>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[263,293,294,533,749,837],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-6","tag-reporting-services","tag-sql","tag-sql-server","tag-533","tag-749","tag-837"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts\/264"}],"collection":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=264"}],"version-history":[{"count":0,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts\/264\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}