I am using following stored in sqlserver, I can't figure out to pass array in this stored procedure. The array is exactly in this format from c# code ABC,DEF or i can write string abc = "ABC,DEF";
ALTER PROCEDURE [dbo].[BookedChemicalsLists]
@RigNameValue VARCHAR(50) = null
AS
BEGIN
SET NOCOUNT ON;
SELECT *
FROM [BookedChemicals]
WHERE AND (RigName IN (@RigNameValue,',') OR @RigNameValue IS NULL )
END