【问题标题】:how to pass nullable value sql server report如何传递可为空值的sql server报告
【发布时间】:2018-01-24 22:27:13
【问题描述】:

使用 Odbc 连接在 sql server 报告中为 postgres 数据库创建报告。我在传递可为空值参数时遇到问题,尽管查询在查询设计器中工作正常,但在运行服务器时无法正常工作。我的查询

Select * 
from "FF"."Rpt_vEventReportpart1" a 
where a."CallType" is null or a."CallType"= (COALESCE(?,a."CallType"))

【问题讨论】:

  • 如何不工作
  • 这就是我不知道的问题?
  • 我的意思是什么发生或不发生?描述问题。
  • 在通过 ssrs 查询设计器传递空参数时它的工作。但在单击运行按钮时不起作用

标签: sql-server postgresql reporting-services


【解决方案1】:

只是猜测。试试看:

where 
    a."CallType" is null or 
    ? is null or
    a."CallType" = ?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-02
    • 1970-01-01
    • 2010-11-07
    • 2015-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多