Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

How to get full email address info for SSRS 2005 Subscriptions from database (query results are truncated)?

$
0
0

We're going to change our SSRS 2005 server's email configuration in Production next week, and ahead of that, we'd like to have our Exchange team validate that the email addresses in the subscriptions will work with the new configuration (some may be legacy Lotus Notes address entries). I've created the query below, and the only problem with it is that the Description field results are mysteriously truncated. Looks like all I'll ever get is 55 characters. I've tried just selecting the Description field "plain", but the problem remains. I review the results, and I can see truncated lists of email addresses (eg John.Jones@mail.com, Jane.Smi). I've copied the results out of SSMS, pushed query results to grid, text, and file, but still the results are truncated. Why? Do I have to write something against the API's to get this info instead? Seems like I must be missing something. The results aren't truncated if I look at the subscription details in Report Manager, so clearly that text is being stored somewhere.

use ReportServer
SELECT
Report.Path as Report_Path_and_Name
      ,Replace(S.[Description], 'Send e-mail to ', '') as sub_Description
      ,[LastStatus]
,s.[ModifiedDate] as sub_Modified
      ,[LastRunTime]
  FROM [ReportServer].[dbo].[Subscriptions] s
inner join dbo.Catalog Report on s.Report_OID = Report.ItemID
where LastRunTime > '2008-12-01'
and (s.Description like '%Send e-mail to%'
or LastStatus like '%Mail sent%')

Thanks much!


Viewing all articles
Browse latest Browse all 10045

Trending Articles