iT邦幫忙

0

SSRS REPORT 下載 & 怎麼撈出report server所有的報表名稱?

  • 分享至 

  • xImage
  •  

下載的方式
http://192.168.1.1/Reports/Pages/Report.aspx?ItemPath=/folder/reportName&SelectedTabId=PropertiesTab&Export=true&ViewMode=List

怎麼撈出report server所有的報表名稱?
select * FROM [ReportServer].[dbo].[Catalog]

把報表串成下載字串

DROP TABLE #TMP 
SELECT row_number() OVER(ORDER BY  NAME ) As Seq, Type x,*,NAME, 'START chrome.exe "http://192.168.1.123/Reports/Pages/Report.aspx?ItemPath='
+Path
+'&SelectedTabId=PropertiesTab&Export=true&ViewMode=List" ' URL
INTO #TMP 
  FROM [ReportServer].[dbo].[Catalog]
  WHERE 1=1 AND PATH LIKE '/folder/%'  
  AND Type not in (5,3,4)  
  order by Type desc
  
  SELECT URL,* FROM #TMP  WHERE Seq BETWEEN 1 AND 300
  SELECT URL,* FROM #TMP  WHERE Seq BETWEEN 301 AND 600
  SELECT URL,* FROM #TMP  WHERE Seq BETWEEN 601 AND 900

然後把URL弄到bat去,執行bat即可


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言