我需要编写一个例程,该例程将找到由SQL Server Reporting Services发布的最新报告。我知道文件名,它将包含@timestamp
变量,但我找不到它的格式,客户还没有提供任何测试文件。你知道它是int
还是datetime
等等吗?
微软并没有在文档中提到它:https://learn.microsoft.com/en-us/sql/reporting-services/subscriptions/file-share-delivery-in-reporting-services?view=sql-server-ver16#bkmk_file_options
@timestamp
订阅变量是yyyy_MM_dd_HHmmss
格式的,您可以从本示例教程中看到:https://www.techbrothersit.com/2014/07/ssrs-how-to-create-ssrs-report-with.html