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 11: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 4:03pm

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 2:11pm

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 28th, 2009 12:27am

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 8:33pm

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

Other recent topics Other recent topics