i m using a parameter @paraBatchid which is a String (eg:test-3,test-4,test-5)
when i pass only one value it works fine .eg(test-3)
Now i have to use the values from Excel which will be copy pasted by the user concatenating the values with , and pasted in the textbox for batch Id.
i have used the join but it does not work for multivalue paramaters for some reason eg: Join(Parameters!paraBATCHID.Value,"','")
SELECT RT.INVENTBATCHID, RT.ITEMID, RT.DATAAREAID, RT.GROSSWT, RT.NETMETALWT, RT.NETSTONEWT, RT.NETACCESSORIESWT, RT.DATE,
RT.QTY AS BatchQty, II.FILEPATH, CASE ITS.ITEMTYPE WHEN 3 THEN 'Accessories' ELSE RLSUBT.ITEMSUBTYPE END AS ITEMSUBTYPE,
RLSUBT.QTY, RLSUBT.QTYPERBATCHQTY, RLSUBT.DUALQTY, RLSUBT.DUALQTYPERBATCHQTY, RLSUBT.UNITID, RLSUBT.DUALUNITID,
ITS.DATAAREAID AS Expr1
FROM ITEMIMAGES AS II RIGHT OUTER JOIN
REGISTRATIONTABLE AS RT INNER JOIN
REGISTRATIONLINESUBTYPE AS RLSUBT ON RT.INVENTBATCHID = RLSUBT.INVENTBATCHID AND
RT.DATAAREAID = RLSUBT.DATAAREAID RIGHT OUTER JOIN
ITEMTYPESETUP AS ITS ON RLSUBT.ITEMSUBTYPE = ITS.ITEMSUBTYPE ON II.ITEMID = RT.ITEMID AND II.MAINIMAGE = 1
WHERE (RT.DATAAREAID = @paradataareaid) AND (RT.INVENTBATCHID IN (@parabatchid)) AND (ITS.DATAAREAID = 'vri')
NOW
WHERE (RT.DATAAREAID = @paradataareaid) AND (RT.INVENTBATCHID IN ('test-3','test-4','test-5')) AND (ITS.DATAAREAID = 'vri')
the above Query Works fine in ..SQL but when these values is given to the parameter textbox in SSRS it does not work..
when i pass only one value it works fine .eg(test-3)
Now i have to use the values from Excel which will be copy pasted by the user concatenating the values with , and pasted in the textbox for batch Id.
i have used the join but it does not work for multivalue paramaters for some reason eg: Join(Parameters!paraBATCHID.Value,"','")
SELECT RT.INVENTBATCHID, RT.ITEMID, RT.DATAAREAID, RT.GROSSWT, RT.NETMETALWT, RT.NETSTONEWT, RT.NETACCESSORIESWT, RT.DATE,
RT.QTY AS BatchQty, II.FILEPATH, CASE ITS.ITEMTYPE WHEN 3 THEN 'Accessories' ELSE RLSUBT.ITEMSUBTYPE END AS ITEMSUBTYPE,
RLSUBT.QTY, RLSUBT.QTYPERBATCHQTY, RLSUBT.DUALQTY, RLSUBT.DUALQTYPERBATCHQTY, RLSUBT.UNITID, RLSUBT.DUALUNITID,
ITS.DATAAREAID AS Expr1
FROM ITEMIMAGES AS II RIGHT OUTER JOIN
REGISTRATIONTABLE AS RT INNER JOIN
REGISTRATIONLINESUBTYPE AS RLSUBT ON RT.INVENTBATCHID = RLSUBT.INVENTBATCHID AND
RT.DATAAREAID = RLSUBT.DATAAREAID RIGHT OUTER JOIN
ITEMTYPESETUP AS ITS ON RLSUBT.ITEMSUBTYPE = ITS.ITEMSUBTYPE ON II.ITEMID = RT.ITEMID AND II.MAINIMAGE = 1
WHERE (RT.DATAAREAID = @paradataareaid) AND (RT.INVENTBATCHID IN (@parabatchid)) AND (ITS.DATAAREAID = 'vri')
NOW
WHERE (RT.DATAAREAID = @paradataareaid) AND (RT.INVENTBATCHID IN ('test-3','test-4','test-5')) AND (ITS.DATAAREAID = 'vri')
the above Query Works fine in ..SQL but when these values is given to the parameter textbox in SSRS it does not work..