SELECT Path , Name , Command = SUBSTRING(CONVERT(VARCHAR(MAX), CONVERT(VARBINARY(MAX), content)), --Expression CHARINDEX('', CONVERT(VARCHAR(MAX), CONVERT(VARBINARY(MAX), content))) + 13, --Start Position CHARINDEX('', CONVERT(VARCHAR(MAX), CONVERT(VARBINARY(MAX), content))) - CHARINDEX('', CONVERT(VARCHAR(MAX), CONVERT(VARBINARY(MAX), content))) - 13) --LengthFROM ReportServer.dbo.CatalogWHERE Content IS NOT NULL AND Type = 2 AND CHARINDEX('', CONVERT(VARCHAR(MAX), CONVERT(VARBINARY(MAX), content))) > 0ORDER BY Name ;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29351/viewspace-668212/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29351/viewspace-668212/