简体   繁体   English

SSRS 报告订阅 - 发送到 FTP

[英]SSRS Report Subscription - send to FTP

I have a few reports that send emails with the reports attached.我有一些报告发送带有报告附件的电子邮件。 The reports are in Excel format, and run Daily.报告采用 Excel 格式,每天运行。

Was wondering if it is possible to send the report to an FTP site.想知道是否可以将报告发送到 FTP 站点。 If possible, also add to the name of the file prefix or suffix with the date (no need for Time).如果可能,还要在文件名中添加日期前缀或后缀(不需要时间)。

I don't think it's possible out of the box (we're looking into option as well - currently favouring some kind of DMZ with the recipient doing and FTP pull).我认为开箱即用是不可能的(我们也在研究选项 - 目前支持某种 DMZ 与收件人做和 FTP 拉)。

One option we've found is using VBScript to push via SFTP.我们发现的一种选择是使用 VBScript 通过 SFTP 推送。 See here for more details: https://skamie.wordpress.com/2011/07/14/send-ssrs-subscription-files-to-secured-ftp/有关更多详细信息,请参见此处: https ://skamie.wordpress.com/2011/07/14/send-ssrs-subscription-files-to-secured-ftp/

If you need the date and time in the name of the report output, you can use the @timestamp variable anywhere in the filename and it will be replaced with yyyy_MM_dd_HHmmss .如果您需要报告输出名称中的日期和时间,您可以在文件名中的任何位置使用@timestamp 变量,它将被替换为yyyy_MM_dd_HHmmss

If you absolutely must remove the timestamp, you will need to use a data-driven subscription and set the filename as part of your query.如果您绝对必须删除时间戳,则需要使用数据驱动订阅并将文件名设置为查询的一部分。 This SO question has more details: How to get current date in file name?这个 SO 问题有更多详细信息: 如何获取文件名中的当前日期?

As for getting the output to SFTP, you could use this: https://deztec.com/products/sftp-destination/至于将输出发送到 SFTP,您可以使用: https ://deztec.com/products/sftp-destination/

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

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