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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Parameters

Status
Not open for further replies.

kezzab

Programmer
Nov 9, 2005
14
GB
I need to be able to use the multiple parameters option on one of my reports, however when i do this the stored procedure fails to return any records.

I suspect this is because it is passing incorrect syntax back to the SP. e.g. My IN clause will be epecting ('xxxx', 'yyyy', 'zzzz') but i suspect it is getting ('xxxx, yyyy, zzzz') and therfore not working.

Does anyone have any ideas on where this can be rectified and how?

thanks
 
Try searching the SQL Server Programming area of tek-tips: forum183

You should be able to find some T-SQL written to split a string into a table variable... then you could join the variable just like joining any other table... instead of using an IN clause.
 
Thanks Scheco, however using reporting services 2005 I was able to do it without having to pass the parameters to the sproc.

For the size of the dataset i'm returning this will be approriate for now.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top