Breaking News
Loading...
22/05/2013

Lấy danh sách SSRS report từ database.

Mặc định khi ta cài Reporting Services sẽ có 2 database được thêm vào Database Engine.

Khi ta tạo các report và xuất bản lên SSRS Server, thông tin về các report này sẽ được lưu trong database SSRS là ReportServer.

Dùng câu truy vấn sau để lấy danh sách các SSRS report này:



Select [Name],
[Description],
SubString([Path],1,Len([Path]) - (CharIndex('/',Reverse([Path]))-1)) As [Path],
Case
When [Hidden] = 1
Then 'Yes'
Else 'No'
End As [Hidden]
From [Catalog]
Where [Type] = 2
Order By SubString([Path],1,Len([Path]) - (CharIndex('/',Reverse([Path]))-1)), [Name]


Tham khảo: http://nathondalton.wordpress.com/2010/02/22/get-reporting-services-report-list-from-database/

0 comments:

Post a Comment

 
Toggle Footer