Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Just passing one parameter on a SP in reporting services 1

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
I have a SP which accepts 3 values,

@dtStart
@dtEnd
@dtDept

I want to be able to pre fill in teh dtDept but leave the dtStart and dtEnd as parameters which the user can defined.

I ahve tried adding this informatoin to the parameters tab on the datasource, but this does not seem to have the required effect.

What am i missing ?

Chance,

F, G + 1MSTG
 
If dtDept is always going to be the same, maybe you could just assign it a default value in the database level?

You can also assign your default value (or expression) and indicate it should be "non-queried". Then check the box that says "Hidden" and your users will not know about it.

Does this work, or is there more to it?

(I've only tested this on SSRS 2005)

[small]----signature below----[/small]
Majority rule don't work in mental institutions

My Crummy Web Page
 
Hi;

You can set default value in your Stored Procedure parameter.

Thanks

 
cheers alex, was looking in the wrong place.

Chance,

F, G + 1MSTG
 
Yeah, a lot of that stuff is very confusing at first (was to me anyway, I'm not exactly the sharpest knife in the drawer).

Glad you got it sorted!

[small]----signature below----[/small]
Majority rule don't work in mental institutions

My Crummy Web Page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top