Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > Reporting Services
|
Reporting Services SQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2007, 06:02 AM
Registered User
 
Join Date: Jul 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Daily fileshare report using changing parameters

Hi all,

I am setting up subscriptions for a number of reports I've created, and I've successfully managed to have them write to the fileshare folder. Some of the reports have date parameters (start and end date etc.), and I've got them working by entering the dates in the parameter values at the bottom of the subscription page. However, what if I want to have the reports run on a daily basis using different dates each day - for example, run using "today" as a parameter, or maybe "today" as the 'end date' and "today - 7 days" as the 'start date'? Is this something I'm going to be able to set up?

Thanks in advance
Scott


 
Old October 28th, 2007, 10:17 AM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to heyguy
Default

hello,my english is pool,
but i would try to make it clear to you

first,create a new table called "dual" in your sql

database,suppost the datebase is called "test",
just one column in the table "dual",
full one datetime recode such as "2007-01-01" in it
you can use any date,it's not important.

suppost that you have set up a dateset
and the sql is:
select count(*)
from product
where sales_date=@tj_date

and @tj_date is the parameter

turn to the "data" item
add a new dataset,"name" item is "rdate"
"Query sting" is the sql
"select getdate()-1 from dual"
or "select '2007-10-27' from dual"

turn to "layout" page item,find and click "report

parameters"
a setting box would come out
if every thing's right,you will find the parameter "@tj_date",
and "Default values" choose "From query"
and you will find "rdate" in the list,just choose it.
ok build your program, it's what you want.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Parameters in report burgos Crystal Reports 1 November 26th, 2007 03:26 AM
Help with daily log database HaileyJ Access VBA 2 September 11th, 2007 08:32 AM
Changing report parameters programmatically dimainsoft Crystal Reports 0 July 13th, 2006 12:36 AM
Crystal Report Changing Orientation garrysmith68 Beginning VB 6 0 June 6th, 2006 06:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.