简体   繁体   中英

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. 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". Try the following.

  • Add an extra column, say FolderPath , in the query that drives your report. 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
  • Then, while setting up the subscription, select Get the value from the database and set it to the FolderPath column.

Please let me know if it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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