I have a List of int in that i am getting some value now I want to pass all the value to my store procedure one by one or comma separated,
Code Behind:
Cmd.Parameters.AddWithValue("@ImageId", IDList); //IDList is list of int which need to pass in my SP
in SP
@ImageId int //declaration
IF Not Exists(SELECT ImgIns.Id FROM ImgIns WHERE ImgIns.ImageId =@ImageId)