简体   繁体   English

如何在SSRS数据驱动订阅的路径中引用'

[英]How do I refer to a ' in the path of a SSRS data-driven subscription

I am writing a data driven subscription in SSRS and unfortunately the folder I am writing to is written FY'15. 我在SSRS中写了一个数据驱动的订阅,不幸的是,我正在写的文件夹是FY'15。 I can't change this. 我不能改变这个。

Does anyone know how I refer to this path in the subscription? 有谁知道我如何在订阅中引用此路径?

您应该能够使用双单引号或使用CHR(39)

I believe you are trying to save the Generated report in a shared directory which has the Folder Name "FY'15". 我相信您正在尝试将“生成的”报告保存在文件夹名称为“ FY'15”的共享目录中。 Try the following. 尝试以下方法。

  • Add an extra column, say FolderPath , in the query that drives your report. 在驱动报告的查询中添加额外的一列,例如FolderPath The Value of this column will be the Path of your target folder. 该列的值将是目标文件夹的路径。 You can write it as select 'C:\\folder1\\folder2\\FY''15' as FolderPath 您可以将其写为select 'C:\\folder1\\folder2\\FY''15' as FolderPath
  • Then, while setting up the subscription, select Get the value from the database and set it to the FolderPath column. 然后,在设置订阅时,选择Get the value from the database并将其设置为FolderPath列。

Please let me know if it works. 请让我知道它是否有效。

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

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