怎麼撈出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即可