{"id":933,"date":"2015-11-04T21:50:18","date_gmt":"2015-11-04T12:50:18","guid":{"rendered":"http:\/\/sorceryforce.net\/WordPress\/?p=933"},"modified":"2015-11-04T21:50:18","modified_gmt":"2015-11-04T12:50:18","slug":"ssrs-%e3%83%ac%e3%83%9d%e3%83%bc%e3%83%88%e3%83%9e%e3%83%8d%e3%83%bc%e3%82%b8%e3%83%a3%e3%83%bc%e3%81%a7%e3%83%ac%e3%83%9d%e3%83%bc%e3%83%88%e3%81%8c%e3%82%b5%e3%83%96%e3%82%b9%e3%82%af%e3%83%aa","status":"publish","type":"post","link":"https:\/\/blog.sorceryforce.net\/?p=933","title":{"rendered":"[SSRS] \u30ec\u30dd\u30fc\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3067\u30ec\u30dd\u30fc\u30c8\u304c\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u81ea\u52d5\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3055\u308c\u305f\u3068\u304d\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[\n\n<p>\u30e1\u30e2\u66f8\u304d\u3067\u3059\u3002<\/p>\n\n\n\n\n<h3>\u74b0\u5883<\/h3>\n\n\n\n\n<ul>\n\n<li>SQL Server : SQL Server 2008 R2<\/li>\n\n<\/ul>\n\n\n\n\n<h3>\u5185\u5bb9<\/h3>\n\n\n\n\n<p>\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30ec\u30dd\u30fc\u30c8\u306e\u7a2e\u985e\u3084\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u306b\u304b\u304b\u3063\u305f\u6642\u9593\u3001\u7d50\u679c\u3001\u51fa\u529b\u30b5\u30a4\u30ba\u3001\u884c\u6570\u306a\u3069\u304c\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n\n<p>\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f SQL Server Reporting Services \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306b\u4f5c\u6210\u3055\u308c\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u300cReportServer\u300d\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e SQL \u3092\u5b9f\u884c\u3059\u308b\u3068\u30ed\u30b0\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\n\n<pre><code>use [ReportServer];\nselect\n  B.[Path]                -- \u30ec\u30dd\u30fc\u30c8\u306e\u30d1\u30b9\u3068\u540d\u524d\n ,A.[LogEntryId]\n ,A.[InstanceName]        -- \u30ec\u30dd\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\n ,A.[ReportID]\n ,A.[UserName]            -- \u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\n ,A.[ExecutionId]\n ,A.[RequestType]\n ,A.[Format]\n ,A.[Parameters]          -- \u30ec\u30dd\u30fc\u30c8\u306e\u51fa\u529b\u306b\u6307\u5b9a\u3057\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\n ,A.[ReportAction]\n ,A.[TimeStart]           -- \u51fa\u529b\u3092\u958b\u59cb\u3057\u305f\u6642\u9593\n ,A.[TimeEnd]             -- \u51fa\u529b\u304c\u5b8c\u4e86\u3057\u305f\u6642\u9593\n ,A.[TimeDataRetrieval]   -- \u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u306b\u304b\u304b\u3063\u305f\u6642\u9593 (\u5358\u4f4d\u306f\u30df\u30ea\u79d2)\n ,A.[TimeProcessing]      -- \u30ec\u30dd\u30fc\u30c8\u306e\u51e6\u7406\u306b\u304b\u304b\u3063\u305f\u6642\u9593 (\u5358\u4f4d\u306f\u30df\u30ea\u79d2)\n ,A.[TimeRendering]       -- \u30ec\u30dd\u30fc\u30c8\u306e\u8868\u793a\u306b\u304b\u304b\u3063\u305f\u6642\u9593 (\u5358\u4f4d\u306f\u30df\u30ea\u79d2)\n ,A.[Source]\n ,A.[Status]              -- rsSuccess(\u6210\u529f) \u307e\u305f\u306f\u30a8\u30e9\u30fc \u30b3\u30fc\u30c9\n ,A.[ByteCount]           -- \u30ec\u30dd\u30fc\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\n ,A.[RowCount]            -- \u30af\u30a8\u30ea\u7d50\u679c\u306e\u884c\u6570\nfrom [ExecutionLogStorage] A\ninner join [Catalog] B\n  on B.[ItemID] = A.[ReportID]\nwhere convert(varchar(8), A.[TimeStart], 112) = '20151104'  -- \u3044\u3064\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u3044\u304b\u3001\u306a\u3069\u306e\u6761\u4ef6\norder by A.[LogEntryId] desc;<\/code><\/pre>\n\n\n\n<p>\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8a73\u3057\u3044\u60c5\u5831\u306a\u3069\u306f\u4ee5\u4e0b\u306e URL \u5148\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002SharePoint \u306b\u3064\u3044\u3066\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5185\u90e8\u3067\u306f Reporting Service \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u5927\u4f53\u540c\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<ul>\n\n<li><a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/ms159110(v=sql.120).aspx\">\u30ec\u30dd\u30fc\u30c8 \u30b5\u30fc\u30d0\u30fc\u5b9f\u884c\u30ed\u30b0\u3068 ExecutionLog3 \u30d3\u30e5\u30fc<\/a><\/li>\n\n<\/ul>\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":[293,294,305,533,609,743,745],"class_list":["post-933","post","type-post","status-publish","format-standard","hentry","category-6","tag-sql","tag-sql-server","tag-ssrs","tag-533","tag-609","tag-743","tag-745"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts\/933"}],"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=933"}],"version-history":[{"count":0,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=\/wp\/v2\/posts\/933\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sorceryforce.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}