Adding date to filename in report subscription
My company sends reports on a daily basis to our customers. Now I want to save all the sent reports on disc with the date in the filename. I have set up a subscription which daily saves the files where I want them. However, I haven't found a way to add the date easily. I already have a parameter when creating the report, it is called Date. Does anybody know if I can use a parameter or something else? Thank's
April 26th, 2007 4:04am

Hello, Sorry, I don't believe there is a way to modify the filename from a subscription, but you can specify a filenamefrom a Data-Driven Subscription. Do a data-driven subscription to a file share, and just include an extra column in your subscription query to have something like this: select 'Report or file name here ' + convert(varchar, getdate(), 101) as FileName, ... Then, when you are setting the delivery extension settings, use this field as your File name. Hope this helps. Jarret
Free Windows Admin Tool Kit Click here and download it now
April 26th, 2007 9:03am

There' s another simple solution: Just add @timestamp behind the Filename in the Textbox. Example: myreport@timestamp The report will be saved with the Timestamp of the creation time.
April 17th, 2008 7:11am

Thanks you Daniel. Can I have list of global variables we can use like @timestamp?
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2009 4:27pm

This was a perfect fix for us, thx. We needed to use this on SQL 2008 Reporting Services Manager, worked like a charm!
February 11th, 2011 2:20pm

Is there a way to just add the Date (YYYYMMDD) without the time to the file name?
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2012 11:49am

I can't find a way to edit the format of @timestamp, any ideas?
May 18th, 2012 7:48am

I can't find a way to edit the format of @timestamp, any ideas? Looking for same thing, Anyone please?SharePoint 2007 (Administration/Development) | Web developer and .NET DTS Programmer | .NET Framework 2.0/3.5 | SQL Server 2008/2005/2k
Free Windows Admin Tool Kit Click here and download it now
June 24th, 2012 10:51pm

Which Textbox are you referring to?
August 9th, 2012 9:39pm

"THE" Textbox. You got me.
Free Windows Admin Tool Kit Click here and download it now
August 10th, 2012 4:07pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics