all groups > sql server reporting services > december 2004 >
You're in the

sql server reporting services

group:

Stored Procedure Parameters


Re: Stored Procedure Parameters Jeff A. Stucker
12/9/2004 8:59:01 AM
sql server reporting services:
Yes, you can use a UNION in your source query for the parameters.

SELECT parmValue, parmLabel FROM parmTable
UNION
SELECT -1, "All"

--
Cheers,

'(' Jeff A. Stucker
\

Business Intelligence
www.criadvantage.com
--------------------------------------
[quoted text, click to view]

Re: Stored Procedure Parameters Jeff A. Stucker
12/9/2004 12:10:54 PM
You have to modify the stored procedure and put the UNION in there.

--
Cheers,

'(' Jeff A. Stucker
\

Business Intelligence
www.criadvantage.com
--------------------------------------
[quoted text, click to view]

Stored Procedure Parameters Frank Ashley
12/9/2004 3:47:21 PM
I have two parameters that are filled with the results from two sprocs.
Either both or only one is to be passed into the report sproc. Is there any
way to add say -1 as a datarow to one of the datasets so I can trap this in
the report sproc and not process this parameter?


Thanks
Frank Ashley


Re: Stored Procedure Parameters Frank Ashley
12/9/2004 6:26:45 PM
If I used text to query the Db then pasting that in would be it but how do I
append that to a sproc that I'm calling?

eg
GetValuesFromLookupTable UNION SELECT -1, "All"

throw errors as it tries to execute

GetValuesFromLookupTable UNION SELECT -1, "All" as a single sproc


Thanks
Frank


[quoted text, click to view]

Re: Stored Procedure Parameters Frank Ashley
12/10/2004 8:08:38 AM
I was afraid you'd say that.

Cheers
Frank


[quoted text, click to view]

AddThis Social Bookmark Button