In a SSRS data set, the query is like:
SELECT ...
FROM ...
WHERE
(table1.ContractID = @ConID)
AND
(table2.Payment_Number = @PayNo)
I would like to write a T-SQL script which performs the query, but was wondering how to convert the two parameters ConID and PayNo in the dataset?
Is it to define a procedure in the T-SQL script with the two parameters, and call it?
Thanks.