简体   繁体   English

SSRS 2012 到 SSRS 2016 导致报告显示不同的 NLS 参数 (Oracle 12c (12.1.0.2.0) )

[英]SSRS 2012 to SSRS 2016 causing reports to show different NLS parameters (Oracle 12c (12.1.0.2.0) )

We've recently updated SSRS to 2016 from 2012 - once we updated the server and installed the ODAC we noticed the NLS settings change for reports (for example if we run SELECT * FROM V$NLS_PARAMETERS locally the NLS settings default to UK however when we run this through a report it defaults to US).我们最近将 SSRS 从 2012 年更新到 2016 年 - 一旦我们更新了服务器并安装了 ODAC,我们注意到报告的 NLS 设置发生了变化(例如,如果我们在本地运行SELECT * FROM V$NLS_PARAMETERS ,则 NLS 设置默认为英国,但是当我们通过默认为美国的报告运行此报告)。

This issue is causing day parameters (TO_CHAR(DATE,'D')) and date parameters ('DD/MM/YYYY') to break.此问题导致日期参数 (TO_CHAR(DATE,'D')) 和日期参数 ('DD/MM/YYYY') 中断。

Any advice would be greatly appreciated.任何建议将不胜感激。

Thanks谢谢

Always check nls_session_parameters because that will be the one finally used by the database.始终检查 nls_session_parameters 因为那将是数据库最终使用的参数。

  select * from nls_session_parameters;

And use for example ALTER SESSION To MATCH the parameters with REPORT or vice versa并使用例如 ALTER SESSION 将参数与 REPORT 匹配,反之亦然

 ALTER SESSION SET NLS_DATE_FORMAT='DD/MM/YYYY'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM