预览报告时出现转换溢出错误消息

时间:2019-06-05 16:12:18

标签: visual-studio-2012 telerik-reporting

在Visual Studio 2012中的Telerik报表生成器中预览报表时,我继续收到“转换溢出”错误消息。

我检查了日期字段和数字字段的格式,但仍然收到相同的错误消息。

    select c.name, c.Address, c.City ,c.County ,c.[Post Code], c.[Territory 
    Code], si.[No_], si.[Serial No_], si.[Manufacturer Code], si.[Model 
    Code], 
    si.[Model Year], max(sil.[Posting Date]) as 'Most Recent Service Date', 
    max(mre.Reading) as 'Last Hour Reading'
    from [service item] si left join [customer] c on si.[Customer No_] = c. 
    [No_] left join [service invoice line] sil on si.[No_] = sil.[Service 
    Item  No_]
    left join [Meter Reading Entry] mre on 
    mre.[Service Item No_] = si.[No_] 
    where si.[Manufacturer Code] not in ('CLK', 'CRN') 
    and si.[Customer No_] not in ('5994c','5998c')
    and si.[Service Item Group Code] = 'FOR'
    and c.name !=''



    group by c.name, c.Address, c.City ,c.County ,c.[Post Code], c. 
    [Territory 
    Code], si.[No_], si.[Serial No_], si.[Manufacturer Code], si.[Model 
    Code], si.[Model Year]

我希望这些字段将被返回。所有数据均在Sql Management Studio中完美返回。我会说,当我在查询末尾删除两个“ max”字段时,它将返回其余数据,而不会出现“转换溢出”错误消息。

0 个答案:

没有答案