September 17, 2008 at 5:56 am
Is there a trick to passing a multivalued parameter to a stored procedure? It has been a while since I have had to do this and I cannot remember. Is this something that I need to do in reporting services passing the string, or is it configured in the T-SQL?
Thanks for the information.
This is the SQL Query here:
SELECT NoteID, Time_Stamp, NoteDate, Line, Shift, OperatorNote
FROM tblOperatorNotes
WHERE (NoteDate >= @startDate) AND (NoteDate <= @enddate) and (Shift=@shift)
and Line in (@line)
order by Line
September 17, 2008 at 6:52 am
I've never had much luck in passing multi valued params to a stored procedure and in those cases I've just pulled the query back into the RDL instead of having it references a sproc.
I tried a number of string manipulations trying to add single quotes, commas etc And parse them out in the beginning of the stored procedure but eventually decided to just keep the query in the report.
-Luke.
September 17, 2008 at 8:05 am
Thanks for the reponse! I decided to do the same thing 🙂 Just keep it in the report itself.
September 17, 2008 at 8:16 pm
See the following... it's a long article, but it's worth it.
Passing Parameters as (almost) 1, 2, and 3 Dimensional Arrays
http://www.sqlservercentral.com/articles/T-SQL/63003/
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply