This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use [ReportServer] | |
DECLARE @Path nvarchar(250) = '/' --The path where you want to scan for reports | |
DECLARE @Commit bit = 0 | |
DECLARE @SharedDSName nvarchar(250) = '/SharedDS' --The name of the shared dataset to use | |
IF NOT EXISTS(SELECT 1 FROM [CataLog] Where [Path] = @SharedDSName) | |
BEGIN | |
print 'Could not find shared data source "' + @SharedDSName + '" !' |