我写了一个存储过程来设置描述。我需要在部署后运行存储过程,这是一种解决方法,但我对此解决方案很好。
这是代码:
-- Folder Description: QC - Internal Reports
UPDATE DBReporting.dbo.Catalog
SET Description = 'restricted to department QC'
WHERE Type = 1 -- Folder
AND Name = 'QC - Internal Reports';
奖励:您还可以使用报告数据库中的目录表隐藏(子)报告。我在Visual Studio中使用“报表”描述来标识要隐藏的报表。
-- Hides Reports
UPDATE DBReporting.dbo.Catalog
SET Hidden = 1
WHERE Type = 2 -- Report
AND Description = 'Hidden';
-- Hide Datasource Folder
UPDATE DBReporting.dbo.Catalog
SET Hidden = 1
WHERE Type = 1 --Folder
AND Name = 'Data Sources';
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句