I need to create and call a store procedure that has a Select statement with an IN clause in the WHERE Condition.
The data type of the field is int.
How do I pass the variable to the IN clause?
Stored Procedure:
sp_GetRecords
@IDList
AS
SELECT *
FROM TABLE
WHERE IDField IN @IDList
The data type of the field is int.
How do I pass the variable to the IN clause?
Stored Procedure:
sp_GetRecords
@IDList
AS
SELECT *
FROM TABLE
WHERE IDField IN @IDList