I already read many posts about this topic.
I'm trying to perform on a real table the following:
DELETE FROM MYTABLE WHERE ID in (...)
where in clause can contain 1,2 or many (>3000) values (deriving from a list in c#)
I haven't problems about triggers, FK...
I can't find a complete sample using temporary table table value, or type. And I can't understand how can I insert (3000 records) in the temp table/table value/type without having performance problems. I already understand to do the join after.
I would avoid Stored Procedure if possible